Compare commits
2 Commits
using-alpi
...
d26cc87713
| Author | SHA1 | Date | |
|---|---|---|---|
| d26cc87713 | |||
| 212ae4847a |
@@ -1,8 +1,8 @@
|
||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
|
||||
{
|
||||
"name": "Alpine Dev",
|
||||
"image": "alpine-dev:user",
|
||||
"name": "Ubuntu Dev",
|
||||
"image": "ubuntu-dev:user",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
|
||||
13
docker/alpine/Dockerfile
Normal file
13
docker/alpine/Dockerfile
Normal file
@@ -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" ]
|
||||
3
docker/bookworm/etc/wingmate/crontab
Normal file
3
docker/bookworm/etc/wingmate/crontab
Normal file
@@ -0,0 +1,3 @@
|
||||
17 * * * * sleep 1
|
||||
*/12 * * * * sleep 1
|
||||
12,17,27 * * * * sleep 1
|
||||
1
docker/bookworm/etc/wingmate/services/one
Normal file
1
docker/bookworm/etc/wingmate/services/one
Normal file
@@ -0,0 +1 @@
|
||||
you cannot run this file
|
||||
3
docker/bookworm/etc/wingmate/services/three.sh
Normal file
3
docker/bookworm/etc/wingmate/services/three.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
exec sleep 1
|
||||
3
docker/bookworm/etc/wingmate/services/two.sh
Normal file
3
docker/bookworm/etc/wingmate/services/two.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
exec sleep 1
|
||||
9
docker/dev/Dockerfile
Normal file
9
docker/dev/Dockerfile
Normal file
@@ -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" ]
|
||||
3
docker/dev/etc/wingmate/crontab
Normal file
3
docker/dev/etc/wingmate/crontab
Normal file
@@ -0,0 +1,3 @@
|
||||
17 * * * * sleep 1
|
||||
*/12 * * * * sleep 1
|
||||
12,17,27 * * * * sleep 1
|
||||
1
docker/dev/etc/wingmate/services/one
Normal file
1
docker/dev/etc/wingmate/services/one
Normal file
@@ -0,0 +1 @@
|
||||
you cannot run this file
|
||||
3
docker/dev/etc/wingmate/services/three.sh
Normal file
3
docker/dev/etc/wingmate/services/three.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
exec sleep 1
|
||||
3
docker/dev/etc/wingmate/services/two.sh
Normal file
3
docker/dev/etc/wingmate/services/two.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
exec sleep 1
|
||||
Reference in New Issue
Block a user