You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dávid Balatoni
6eb5f63530
|
5 years ago | |
---|---|---|
hooks | 5 years ago | |
readme | 7 years ago | |
.dockerignore | 5 years ago | |
Dockerfile | 5 years ago | |
README.md | 5 years ago | |
docker-compose.yml | 6 years ago | |
go.mod | 6 years ago | |
go.sum | 6 years ago | |
main.go | 5 years ago |
README.md
StackEdit Docker server
StackEdit v5.14.0 (July 2019) with a Golang HTTP server on Scratch
Image size | RAM usage | CPU usage |
---|---|---|
29.3MB | 7MB | Very low |
Features
- Stackedit features
- Lightweight image based on:
- Stackedit 5.14.0
- Scratch
- Golang simple HTTP static server
- Running without root
- Built-in Docker healthcheck
- Nice emojis in the logs...
Setup
-
CLICK IF YOU HAVE AN ARM DEVICE
-
If you have a ARM 32 bit v6 architecture
docker build -t qmcgaw/REPONAME_DOCKER \ --build-arg BASE_IMAGE_BUILDER_GO=arm32v6/golang \ --build-arg BASE_IMAGE_BUILDER_NODE=arm32v6/alpine \ --build-arg GOARCH=arm \ --build-arg GOARM=6 \ https://github.com/qdm12/stackedit-docker.git
-
If you have a ARM 32 bit v7 architecture
docker build -t qmcgaw/REPONAME_DOCKER \ --build-arg BASE_IMAGE_BUILDER_GO=arm32v7/golang \ --build-arg BASE_IMAGE_BUILDER_NODE=arm32v7/alpine \ --build-arg GOARCH=arm \ --build-arg GOARM=7 \ https://github.com/qdm12/stackedit-docker.git
-
If you have a ARM 64 bit v8 architecture
docker build -t qmcgaw/REPONAME_DOCKER \ --build-arg BASE_IMAGE_BUILDER_GO=arm64v8/golang \ --build-arg BASE_IMAGE_BUILDER_NODE=arm64v8/alpine \ --build-arg GOARCH=arm64 \ https://github.com/qdm12/stackedit-docker.git
-
-
Use the following command:
docker run -d -p 8000:8000/tcp qmcgaw/stackedit
You can also use docker-compose.yml with:
docker-compose up -d
-
Access at http://localhost:8000
Environment variables
LISTENINGPORT
to change the internal HTTP server listening port if you need to
Acknowledgements
Credits to the developers of StackEdit
TODOs
- Configuration of Stackedit with env variables