Skip to content

Commit

Permalink
Update to dinit.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitar committed Jul 11, 2023
1 parent 159a4e1 commit b2a7c4b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Available as:

## Image inheritance

[`tozd/base`](https://gitlab.com/tozd/docker/base)[`tozd/runit`](https://gitlab.com/tozd/docker/runit)`tozd/meteor`
[`tozd/base`](https://gitlab.com/tozd/docker/base)[`tozd/dinit`](https://gitlab.com/tozd/docker/dinit)`tozd/meteor`

See also [`tozd/meteor-testing`](https://gitlab.com/tozd/docker/meteor-testing).

Expand Down
6 changes: 2 additions & 4 deletions etc/service/meteor/log/run
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#!/bin/bash -e

# You can mount a volume (file) into this location to provide a script which sets environment variables.
[ -f /etc/service/meteor/run.config ] && source /etc/service/meteor/run.config

if [ "${LOG_TO_STDOUT}" != "1" ]; then
mkdir -p /var/log/meteor
chown nobody:nogroup /var/log/meteor

exec chpst -u nobody:nogroup svlogd -tt /var/log/meteor
else
exec chpst -u nobody:nogroup tee
# TODO: Exit with 115. See: https://gitlab.com/tozd/dinit/-/issues/1
exec chpst -u nobody:nogroup cat
fi

3 changes: 0 additions & 3 deletions etc/service/meteor/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

export NODE_ENV="production"

# Redirect stderr to stdout to preserve the order between stdout and stderr.
exec 2>&1

# File created by Dockerfile containing NODE_PATH to Meteor's node.
# We are making Meteor's node be useful system wide.
[ -f /etc/service/meteor/run.env ] && source /etc/service/meteor/run.env
Expand Down
2 changes: 1 addition & 1 deletion ubuntu-bionic.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.gitlab.com/tozd/docker/runit:ubuntu-bionic
FROM registry.gitlab.com/tozd/docker/dinit:ubuntu-bionic

EXPOSE 3000/tcp

Expand Down
2 changes: 1 addition & 1 deletion ubuntu-focal.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.gitlab.com/tozd/docker/runit:ubuntu-focal
FROM registry.gitlab.com/tozd/docker/dinit:ubuntu-focal

EXPOSE 3000/tcp

Expand Down
2 changes: 1 addition & 1 deletion ubuntu-jammy.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.gitlab.com/tozd/docker/runit:ubuntu-jammy
FROM registry.gitlab.com/tozd/docker/dinit:ubuntu-jammy

EXPOSE 3000/tcp

Expand Down
2 changes: 1 addition & 1 deletion ubuntu-xenial.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.gitlab.com/tozd/docker/runit:ubuntu-xenial
FROM registry.gitlab.com/tozd/docker/dinit:ubuntu-xenial

EXPOSE 3000/tcp

Expand Down

0 comments on commit b2a7c4b

Please sign in to comment.