-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.5 KB
/
systemd-wf.yml
File metadata and controls
46 lines (40 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "systemd CI workflow"
on:
push:
branches: [ main ]
schedule:
- cron: '0 0 1 * *' ##execution of a task in the first minute of the month
jobs:
ubuntu-latest-systemd-job:
name: "systemd docker scientificlinux ubuntu latest"
runs-on: ubuntu-latest
env:
distribution: "scientificlinux" # https://hub.docker.com/_/sl
version: "7"
name: "scientificlinux/systemd"
dockerfile: "Dockerfile.sl7.systemd"
dockerdir: "dockerfiles"
steps:
- uses: actions/checkout@v2
- name: "os fingerprinting"
run: |
hostnamectl status
lsb_release -a
lsb_release -d
cat /etc/lsb-release
cat /etc/issue
cat /etc/os-release
sudo apt-get install -y neofetch && neofetch
systemd-analyze
- name: "docker build scientificlinux systemd base"
run: |
# https://hub.docker.com/_/sl
# docker build --rm -t local/mycontainer . --file dockerfiles/${dockerfile}
docker build --rm -t ${name}:${version} . --file ${dockerdir}/${dockerfile}
# the input device is not a TTY
# docker run -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 local/mycontainer
# docker run -d -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 local/mycontainer
docker run -d --name scifi-systemd -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 ${name}:${version}
docker image ls
docker container ls
docker exec scifi-systemd cat /etc/redhat-release