File tree 4 files changed +10
-8
lines changed
4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
FROM scratch
2
2
MAINTAINER akerl <
[email protected] >
3
- ENV DUCKTAPE_VERSION 0.3.2
4
- ADD shim/shim /.shim
5
- ADD cert /.cert
6
- ADD https://github.com/dock0/ducktape/releases/download/$DUCKTAPE_VERSION/ducktape /.ducktape
7
- RUN ["/.shim" , "" ]
8
- RUN ["/.ducktape" , "https://github.com/dock0/arch/releases/download/0.0.113/root.tar.bz2" ]
3
+ ENV DUCKTAPE_VERSION 0.4.0
4
+ ENV ROOTFS_VERSION 0.0.113
5
+ ENV DUCKTAPE_URL https://github.com/dock0/arch/releases/download/$ROOTFS_VERSION/root.tar.bz2
6
+ ADD shim/shim /tmp/ducktape/shim
7
+ ADD cert /tmp/ducktape/cert
8
+ ADD https://github.com/dock0/ducktape/releases/download/$DUCKTAPE_VERSION/ducktape /tmp/ducktape/ducktape
9
+ RUN ["/tmp/ducktape/shim" , "" ]
10
+ RUN ["/tmp/ducktape/ducktape" , "https://github.com/dock0/arch/releases/download/0.0.113/root.tar.bz2" ]
9
11
RUN pacman -Syu --needed --noconfirm git iproute2 iputils procps-ng tar which licenses util-linux
10
12
CMD ["/bin/bash" ]
Original file line number Diff line number Diff line change 29
29
30
30
push :
31
31
@echo $$(sed -r 's/[0-9]+$$//' version )$$(($$(sed -r 's/.*\.//' version ) + 1 ) ) > version
32
- sed -i " s|download/[0-9.]*/root|download/ $$ (cat version)/root |" Dockerfile
32
+ sed -i " s|^ENV ROOTFS_VERSION .*|ENV ROOTFS_VERSION $$ (cat version)|" Dockerfile
33
33
git commit -am " $$ (cat version)"
34
34
ssh -oStrictHostKeyChecking=no
[email protected] & > /dev/null
|| true
35
35
git tag -f " $$ (cat version)"
Original file line number Diff line number Diff line change 1
1
#include <sys/stat.h>
2
2
3
3
int main () {
4
- chmod ("/. ducktape" , S_IRUSR |S_IWUSR |S_IXUSR |S_IRGRP |S_IXGRP |S_IROTH |S_IXOTH );
4
+ chmod ("/tmp/ducktape/ ducktape" , S_IRUSR |S_IWUSR |S_IXUSR |S_IRGRP |S_IXGRP |S_IROTH |S_IXOTH );
5
5
return 0 ;
6
6
}
You can’t perform that action at this time.
0 commit comments