Browse Source

revert package to wetty

pull/205/head
butlerx 5 years ago
parent
commit
61526fa3cf
No known key found for this signature in database GPG Key ID: B37CA765BAA89170
  1. 4
      Dockerfile
  2. 12
      README.md
  3. 2
      package.json

4
Dockerfile

@ -1,4 +1,4 @@
FROM node:boron-alpine as builder FROM node:carbon-alpine as builder
RUN apk add -U build-base python RUN apk add -U build-base python
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY . /usr/src/app COPY . /usr/src/app
@ -6,7 +6,7 @@ RUN yarn && \
yarn build && \ yarn build && \
yarn install --production --ignore-scripts --prefer-offline yarn install --production --ignore-scripts --prefer-offline
FROM node:boron-alpine FROM node:carbon-alpine
LABEL maintainer="butlerx@notthe.cloud" LABEL maintainer="butlerx@notthe.cloud"
WORKDIR /usr/src/app WORKDIR /usr/src/app
ENV NODE_ENV=production ENV NODE_ENV=production

12
README.md

@ -24,8 +24,8 @@ $ yarn build
To install it globally from npm use yarn or npm: To install it globally from npm use yarn or npm:
- yarn, `yarn global add wetty.js` - yarn, `yarn global add wetty`
- npm, `npm i -g wetty.js` - npm, `npm i -g wetty`
For auto-login feature you'll need sshpass installed (NOT required for rest of For auto-login feature you'll need sshpass installed (NOT required for rest of
the program). the program).
@ -196,16 +196,16 @@ If you dont want to build the image yourself just remove the line `build; .`
### init.d ### init.d
```bash ```bash
$ sudo yarn global add wetty.js $ sudo yarn global add wetty
$ sudo cp ~/.config/yarn/global/node_modules/wetty.js/bin/wetty.conf /etc/init $ sudo cp ~/.config/yarn/global/node_modules/wetty/bin/wetty.conf /etc/init
$ sudo start wetty $ sudo start wetty
``` ```
### systemd ### systemd
```bash ```bash
$ yarn global add wetty.js $ yarn global add wetty
$ cp ~/.config/yarn/global/node_modules/wetty.js/bin/wetty.service ~/.config/systemd/user/ $ cp ~/.config/yarn/global/node_modules/wetty/bin/wetty.service ~/.config/systemd/user/
$ systemctl --user enable wetty $ systemctl --user enable wetty
$ systemctl --user start wetty $ systemctl --user start wetty
``` ```

2
package.json

@ -1,5 +1,5 @@
{ {
"name": "wetty.js", "name": "wetty",
"version": "1.1.4", "version": "1.1.4",
"description": "WeTTY = Web + TTY. Terminal access in browser over http/https", "description": "WeTTY = Web + TTY. Terminal access in browser over http/https",
"homepage": "https://github.com/krishnasrinivas/wetty", "homepage": "https://github.com/krishnasrinivas/wetty",

Loading…
Cancel
Save