-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v3.1.0 - More features and improvements
- Improved Dockerfile - Docker's `onbuild` images are seemingly deprecated. Now manually running `npm install` and copying required files to the image. - Updated from NodeJS version `8.11.4-onbuild` to `12.16.1-alpine3.11` - `config.json` is now a volume inside the container, allowing it to be updated with a simple `restart` instead of rebuilding the container - Added `publishonce` feature, which causes the script to publish a feed update immediately, then exit. - Added `repository` to `package.json` to silence `npm` errors. - Created `run.sh` management script, which will make it much simpler to use the dockerized `steemfeed-js`. Large portion of the run.sh code is based on https://github.com/Someguy123/steem-docker `run.sh` - Easy install docker with `./run.sh install_docker` - `./run.sh start` intelligently builds the docker image if it doesn't already exist, then creates and runs the container with the appropriate `docker run` flags. - `./run.sh publish` uses the `publishonce` steemfeed-js feature, combined with a docker container which is auto-removed after it finishes - no mess to cleanup :) - Various other features (see README.md and `./run.sh help`) - Added a `.dockerignore` file, which ensures `node_modules/`, `.env` and `config.json` never get sent to Docker's context. Speeding up the build, and preventing active keys etc. being stored inside of an image. - Updated README with new `run.sh` instructions for managing dockerized steemfeed
- Loading branch information
1 parent
e52e9c5
commit 1dd58f6
Showing
9 changed files
with
447 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules/ | ||
.env | ||
config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
config.json | ||
node_modules/ | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
FROM node:8.11.4-onbuild | ||
FROM node:12.16.1-alpine3.11 | ||
|
||
WORKDIR /opt/steemfeed/ | ||
|
||
COPY package.json package-lock.json LICENSE /opt/steemfeed/ | ||
|
||
RUN npm install | ||
|
||
COPY app.js /opt/steemfeed/app.js | ||
COPY lib/ /opt/steemfeed/lib/ | ||
COPY tools/ /opt/steemfeed/tools/ | ||
COPY README.md example.env config.example.json config.advanced.json /opt/steemfeed/ | ||
|
||
LABEL maintainer="Chris (Someguy123) - https://github.com/Someguy123" | ||
LABEL git_repository="https://github.com/Someguy123/steemfeed-js" | ||
|
||
|
||
VOLUME /opt/steemfeed/config.json | ||
|
||
CMD ["sh", "-c", "npm start"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Name of the container to create when calling ./run.sh start | ||
DOCKER_NAME="steemfeed" | ||
|
||
# Name of the docker image to run (also used as the image name when building) | ||
DOCKER_IMAGE="steemfeed-js" | ||
|
||
# DockerHub image source for ./run.sh install | ||
DK_TAG="someguy123/steemfeed-js" | ||
|
||
# Amount of seconds to wait with './run.sh stop' before killing the container | ||
STOP_TIME=30 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.