More features and improvements - added run.sh and improved Dockerfile
-
Improved Dockerfile
-
Docker's
onbuild
images are seemingly deprecated. Now manually runningnpm install
and copying required files to the image. -
Updated from NodeJS version
8.11.4-onbuild
to12.16.1-alpine3.11
-
config.json
is now a volume inside the container, allowing it to be updated with a simplerestart
instead of rebuilding the container
-
-
Added
publishonce
feature, which causes the script to publish a feed update immediately, then exit. -
Added
repository
topackage.json
to silencenpm
errors. -
Created
run.sh
management script, which will make it much simpler to use the dockerizedsteemfeed-js
. Large portion of the run.sh code is based on https://github.com/Someguy123/steem-dockerrun.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 appropriatedocker run
flags. -
./run.sh publish
uses thepublishonce
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 ensuresnode_modules/
,.env
andconfig.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