https://github.com/hongkongkiwi/docker-node-alpine-s6-overlay
Base Docker for Node.js Alpine & S6 Overlay
https://github.com/hongkongkiwi/docker-node-alpine-s6-overlay
alpine docker node s6-overlay
Last synced: 7 months ago
JSON representation
Base Docker for Node.js Alpine & S6 Overlay
- Host: GitHub
- URL: https://github.com/hongkongkiwi/docker-node-alpine-s6-overlay
- Owner: hongkongkiwi
- License: mit
- Created: 2017-07-01T11:28:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-04T12:40:58.000Z (over 8 years ago)
- Last Synced: 2025-02-24T08:12:28.104Z (8 months ago)
- Topics: alpine, docker, node, s6-overlay
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-base-alpine-s6-overlay
Base docker image including the s6-overlay but using Alpine's copy of s6This project's goal is to prepare an Alpine linux base build using
s6-overlay but with the native Alpine linux s6. This reduces the
number of separate sources for difficult-to-inspect binaries.See the original [s6-overlay project](https://github.com/just-containers/s6-overlay)
for more details.Recent updates have taken advantage of the new 'nobin' releases of s6-overlay,
reducing the need to massage the data format.# Updating
To synchronize the source tree with s6-overlay, update the S6\_OVERLAY\_RELEASE item
inside the Dockerfile.If a new key is used, you'll need to add it to the trust keychain in keys/trust.gpg
# Quickstart
Build the following Dockerfile and try this guy out:
```
FROM harningt/base-alpine-s6-overlay:edge
RUN apk add --update nginx && \
rm -rf /var/cache/apk/* && \
echo "daemon off;" >> /etc/nginx/nginx.conf
ENTRYPOINT ["/init"]
CMD ["nginx"]
``````
docker-host $ docker build -t demo .
docker-host $ docker run --name s6demo -d -p 80:80 demo
docker-host $ docker top s6demo acxf
PID TTY STAT TIME COMMAND
3788 ? Ss 0:00 \_ s6-svscan
3827 ? S 0:00 | \_ foreground
3834 ? S 0:00 | | \_ foreground
3879 ? S 0:00 | | \_ nginx
3880 ? S 0:00 | | \_ nginx
3881 ? S 0:00 | | \_ nginx
3882 ? S 0:00 | | \_ nginx
3883 ? S 0:00 | | \_ nginx
3828 ? S 0:00 | \_ s6-supervise
3829 ? S 0:00 | \_ s6-supervise
3830 ? Ss 0:00 | \_ s6-log
docker-host $ curl --head http://127.0.0.1/
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Thu, 26 Mar 2015 14:57:34 GMT
Content-Type: text/html
Content-Length: 612
Last-Modified: Tue, 04 Mar 2014 11:46:45 GMT
Connection: keep-alive
ETag: "5315bd25-264"
Accept-Ranges: bytes
```