Skip to content

Commit

Permalink
Merge pull request #111 from glerchundi/master
Browse files Browse the repository at this point in the history
fixes #72 and #108
  • Loading branch information
glerchundi committed Dec 2, 2015
2 parents b5046f3 + 704c86a commit 675c7cf
Show file tree
Hide file tree
Showing 23 changed files with 40 additions and 39 deletions.
2 changes: 1 addition & 1 deletion builder/build-latest
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -x
## PARAMS
##

RELEASE_VERSION=${RELEASE_VERSION:-1.16.1.0}
RELEASE_VERSION=${RELEASE_VERSION:-1.17.0.0}
SKAWARE_VERSION=${RELEASE_VERSION%.*}
SKAWARE_SOURCE=${SKAWARE_SOURCE:-https://github.com/just-containers/skaware/releases/download/v$SKAWARE_VERSION}

Expand Down
Binary file added builder/overlay-rootfs/etc/leapsecs.dat
Binary file not shown.
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/etc/s6/init-catchall/init-stage1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/execlineb -S0
#!/bin/execlineb -S0

##
## ensure our vital fifo exists
Expand Down
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/etc/s6/init-catchall/init-stage2
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/execlineb -S0
#!/bin/execlineb -S0
/etc/s6/init/init-stage2 $@
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/etc/s6/init-no-catchall/init-stage1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/execlineb -S0
#!/bin/execlineb -S0

##
## init the scandir with our base services
Expand Down
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/etc/s6/init-no-catchall/init-stage2
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/execlineb -S0
#!/bin/execlineb -S0
/etc/s6/init/init-stage2 $@
28 changes: 14 additions & 14 deletions builder/overlay-rootfs/etc/s6/init/init-stage1
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/execlineb -S0
#!/bin/execlineb -S0

##
## dump environment into an envdir
##

/usr/bin/if { /usr/bin/s6-mkdir -pm 0755 -- /var/run/s6/container_environment }
/usr/bin/if { /usr/bin/s6-dumpenv -- /var/run/s6/container_environment }
/bin/if { /bin/s6-mkdir -pm 0755 -- /var/run/s6/container_environment }
/bin/if { /bin/s6-dumpenv -- /var/run/s6/container_environment }


##
Expand All @@ -14,16 +14,16 @@
## consistency.
##

/usr/bin/if
/bin/if
{
/usr/bin/elglob -0 -- envdirs /var/run/s6/env-*
/usr/bin/forx -p -- envdir { ${envdirs} }
/usr/bin/importas -u envdir envdir
/usr/bin/s6-rmrf ${envdir}
/bin/elglob -0 -- envdirs /var/run/s6/env-*
/bin/forx -p -- envdir { ${envdirs} }
/bin/importas -u envdir envdir
/bin/s6-rmrf ${envdir}
}
/usr/bin/if { /usr/bin/s6-hiercopy /etc/s6/init/env /var/run/s6/env-stage1 }
/usr/bin/if { /usr/bin/s6-mkdir -pm 0755 -- /var/run/s6/env-stage2 }
/usr/bin/if { /usr/bin/s6-mkdir -pm 0755 -- /var/run/s6/env-stage3 }
/bin/if { /bin/s6-hiercopy /etc/s6/init/env /var/run/s6/env-stage1 }
/bin/if { /bin/s6-mkdir -pm 0755 -- /var/run/s6/env-stage2 }
/bin/if { /bin/s6-mkdir -pm 0755 -- /var/run/s6/env-stage3 }


##
Expand All @@ -32,9 +32,9 @@
## environment by using "with-contenv program".
##

/usr/bin/exec -c --
/usr/bin/s6-envdir /var/run/s6/env-stage1
/usr/bin/exec --
/bin/exec -c --
/bin/s6-envdir /var/run/s6/env-stage1
/bin/exec --


##
Expand Down
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/etc/s6/init/init-stage2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/execlineb -S0
#!/bin/execlineb -S0

# This file is executed (not as process 1!) as soon as s6-svscan
# starts, with the original stdin/out/err, but NOT the original
Expand Down
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/etc/s6/init/init-stage2-redirfd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/execlineb -S0
#!/bin/execlineb -S0

backtick -D 0 -n S6_LOGGING { printcontenv S6_LOGGING }
importas -u S6_LOGGING S6_LOGGING
Expand Down
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/etc/s6/init/init-stage3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/execlineb -S0
#!/bin/execlineb -S0

# This is the shutdown script, running as process 1.
cd /
Expand Down
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/etc/s6/services/.s6-svscan/crash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/execlineb -P
#!/bin/execlineb -P

# This file is run when an unrecoverable error happens
# to s6-svscan. Edit it to suit your needs.
Expand Down
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/etc/s6/services/.s6-svscan/finish
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/execlineb -S0
#!/bin/execlineb -S0
/etc/s6/init/init-stage3 $@
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/etc/s6/services/s6-fdholderd/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/execlineb -P
#!/bin/execlineb -P
s6-envuidgid -D 32769:32769 daemon
s6-fdholder-daemon -U -1 -i rules -- /var/run/s6/fdholderd-socket
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/etc/s6/services/s6-svscan-log/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/execlineb -P
#!/bin/execlineb -P
logutil-service -f /var/run/s6/uncaught-logs-fifo /var/log/s6-uncaught-logs
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/init
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/execlineb -S0
#!/bin/execlineb -S0
/etc/s6/init/init-stage1 $@
1 change: 1 addition & 0 deletions builder/overlay-rootfs/usr/bin/execlineb
6 changes: 3 additions & 3 deletions builder/overlay-rootfs/usr/bin/fix-attrs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/execlineb -P
#!/bin/execlineb -P

/usr/bin/export PATH /usr/bin:/bin
/usr/bin/export recfunction "\
/bin/export PATH /usr/bin:/bin
/bin/export recfunction "\
multidefine -Cd"," -- ${3} { account uidgid }
backtick -n envuidgid_opts
{
Expand Down
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/usr/bin/logutil-newfifo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/execlineb
#!/bin/execlineb

elgetopt "m:o:"
multisubstitute
Expand Down
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/usr/bin/logutil-service
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/execlineb
#!/bin/execlineb

# test if arguments were given
elgetopt "f:"
Expand Down
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/usr/bin/logutil-service-main
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/execlineb -S1
#!/bin/execlineb -S1

# this env decides what to log and how.
backtick -D "n20 s1000000 T" -n S6_LOGGING_SCRIPT { printcontenv S6_LOGGING_SCRIPT }
Expand Down
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/usr/bin/printcontenv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/execlineb -S0
#!/bin/execlineb -S0

# test if arguments were given
if { s6-test ${#} -ge 1 }
Expand Down
8 changes: 4 additions & 4 deletions builder/overlay-rootfs/usr/bin/with-contenv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/execlineb -S0
/usr/bin/exec -c --
/usr/bin/s6-envdir -fn -- /var/run/s6/container_environment
/usr/bin/exec --
#!/bin/execlineb -S0
/bin/exec -c --
/bin/s6-envdir -fn -- /var/run/s6/container_environment
/bin/exec --
$@
2 changes: 1 addition & 1 deletion builder/overlay-rootfs/usr/bin/with-retries
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/execlineb
#!/bin/execlineb

#
# with-retries -n numretries -t millisecs prog...
Expand Down

0 comments on commit 675c7cf

Please sign in to comment.