wip: using different versions of rust images
This commit is contained in:
parent
212ae4847a
commit
d26cc87713
|
@ -0,0 +1,13 @@
|
||||||
|
FROM rust:alpine as builder
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
FROM alpine
|
||||||
|
|
||||||
|
COPY --from=builder target/debug/init /usr/local/bin/init
|
||||||
|
ADD docker/etc/ /etc/
|
||||||
|
|
||||||
|
RUN chmod ugo+x /etc/wingmate/services/one && chmod ugo+x /etc/wingmate/services/two.sh && \
|
||||||
|
chmod ugo-x /etc/wingmate/services/three.sh
|
||||||
|
|
||||||
|
CMD [ "/usr/local/bin/init" ]
|
|
@ -0,0 +1,3 @@
|
||||||
|
17 * * * * sleep 1
|
||||||
|
*/12 * * * * sleep 1
|
||||||
|
12,17,27 * * * * sleep 1
|
|
@ -0,0 +1 @@
|
||||||
|
you cannot run this file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
exec sleep 1
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
exec sleep 1
|
|
@ -0,0 +1,9 @@
|
||||||
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
ADD target/debug/init /usr/local/bin/init
|
||||||
|
ADD docker/etc/ /etc/
|
||||||
|
|
||||||
|
RUN chmod ugo+x /etc/wingmate/services/one && chmod ugo+x /etc/wingmate/services/two.sh && \
|
||||||
|
chmod ugo-x /etc/wingmate/services/three.sh
|
||||||
|
|
||||||
|
CMD [ "/usr/local/bin/init" ]
|
|
@ -0,0 +1,3 @@
|
||||||
|
17 * * * * sleep 1
|
||||||
|
*/12 * * * * sleep 1
|
||||||
|
12,17,27 * * * * sleep 1
|
|
@ -0,0 +1 @@
|
||||||
|
you cannot run this file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
exec sleep 1
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
exec sleep 1
|
Loading…
Reference in New Issue