Migrate CKAN to S6 supervisor
This commit is contained in:
parent
44035fba50
commit
bcf4295086
@ -13,7 +13,7 @@ RUN \
|
||||
# Add edge/testing repository
|
||||
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >>/etc/apk/repositories \
|
||||
# Install runtime dependencies
|
||||
&& apk --no-cache add geos@edge libjpeg-turbo libmagic libpq mailcap py2-pip zlib
|
||||
&& apk --no-cache add geos@edge libjpeg-turbo libmagic libpq mailcap py2-pip s6 zlib
|
||||
|
||||
RUN \
|
||||
# Install build dependencies
|
||||
@ -47,8 +47,9 @@ RUN \
|
||||
&& find /srv/ckan/src -name '.git*' -exec rm -rf {} + \
|
||||
&& rm -rf /root/.cache
|
||||
|
||||
COPY docker/ /
|
||||
|
||||
VOLUME ["/etc/ckan", "/srv/ckan/storage"]
|
||||
EXPOSE 8080
|
||||
|
||||
USER ckan
|
||||
CMD ["paster", "serve", "/etc/ckan/ckan.ini"]
|
||||
CMD ["s6-svscan", "/etc/services.d"]
|
||||
|
3
ckan/docker/etc/services.d/.s6-svscan/finish
Executable file
3
ckan/docker/etc/services.d/.s6-svscan/finish
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
/bin/true
|
5
ckan/docker/etc/services.d/ckan/run
Executable file
5
ckan/docker/etc/services.d/ckan/run
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/execlineb -P
|
||||
|
||||
fdmove -c 2 1
|
||||
s6-setuidgid 8003:8003
|
||||
/usr/bin/paster serve /etc/ckan/ckan.ini
|
Loading…
Reference in New Issue
Block a user