Skip to content

Commit 8ce869d

Browse files
authored
Update to AlmaLinux 10 and OpenVox 8 (#4)
* Update to AlmaLinux 10 and OpenVox 8 * Add PR tests * Update README.md
1 parent 79c618b commit 8ce869d

File tree

3 files changed

+60
-6
lines changed

3 files changed

+60
-6
lines changed

.github/workflows/pr.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Pull Request Tests
3+
4+
'on':
5+
pull_request:
6+
branches:
7+
- main
8+
- master
9+
push:
10+
branches:
11+
- main
12+
- master
13+
14+
jobs:
15+
hadolint:
16+
name: Lint Dockerfile
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v5
21+
22+
- name: Run hadolint
23+
uses: hadolint/hadolint-action@v3.3.0
24+
with:
25+
dockerfile: Dockerfile
26+
failure-threshold: warning

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM centos:7
1+
FROM almalinux:10
22

3-
RUN yum -y install http://yum.puppet.com/puppet6/puppet6-release-el-7.noarch.rpm && \
4-
yum -y install puppet-agent && \
5-
yum clean all
3+
# hadolint ignore=DL3041
4+
RUN dnf -y install "https://yum.voxpupuli.org/openvox8-release-el-$(rpm -E %rhel).noarch.rpm" && \
5+
dnf -y install openvox-agent && \
6+
dnf clean all

README.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
# docker-sandbox
22

3-
This repo contains a Docker configuration for a basic CentOS 7 + Puppet AIO system
3+
This repo contains a Docker configuration for a basic AlmaLinux + OpenVox system
44
suitable for demonstration purposes. To use it, run the following:
55

6-
docker run --rm -it puppetbootstrap/sandbox /bin/bash
6+
```shell
7+
docker run --rm -it ghcr.io/puppet-bootstrap/sandbox:latest
8+
```
9+
10+
You can also use `podman`:
11+
12+
```shell
13+
podman run --rm -it ghcr.io/puppet-bootstrap/sandbox:latest
14+
```
15+
16+
Inside the container, all `puppet` commands will work as expected, but you can safely
17+
make changes in the ephemeral storage without it affecting your system.
18+
19+
```
20+
$ podman run --rm -it ghcr.io/puppet-bootstrap/sandbox:latest
21+
[root@e43c4102b9e5 /]# puppet resource file /tmp/test_file ensure=file
22+
Notice: /File[/tmp/test_file]/ensure: created
23+
file { '/tmp/test_file':
24+
ensure => 'file',
25+
provider => 'posix',
26+
}
27+
[root@e43c4102b9e5 /]# ls -l /tmp/test_file
28+
-rw-r--r-- 1 root root 0 Oct 23 20:55 /tmp/test_file
29+
[root@e43c4102b9e5 /]# exit
30+
exit
31+
$ ls -l /tmp/test_file
32+
ls: cannot access '/tmp/test_file': No such file or directory
33+
```

0 commit comments

Comments
 (0)