mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-27 00:37:18 +00:00
Compare commits
No commits in common. "f7cc7c7fb019475c7be216de9f533f3fb9d65dd0" and "c4a56f145405f9e0b0f89b96114dcad2f0857c07" have entirely different histories.
f7cc7c7fb0
...
c4a56f1454
46
.github/workflows/regress.yml
vendored
46
.github/workflows/regress.yml
vendored
@ -1,46 +0,0 @@
|
|||||||
name: Regress
|
|
||||||
|
|
||||||
on: workflow_dispatch
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
run-regress-tests:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
services:
|
|
||||||
ahriman:
|
|
||||||
image: arcan1s/ahriman:edge
|
|
||||||
env:
|
|
||||||
AHRIMAN_PORT: 8080
|
|
||||||
AHRIMAN_UNIX_SOCKET: /var/lib/ahriman/ahriman/ahriman-web.sock
|
|
||||||
options: --privileged -w /build --entrypoint entrypoint-web
|
|
||||||
ports:
|
|
||||||
- 8080
|
|
||||||
volumes:
|
|
||||||
- repo:/var/lib/ahriman
|
|
||||||
|
|
||||||
container:
|
|
||||||
image: arcan1s/ahriman:edge
|
|
||||||
env:
|
|
||||||
AHRIMAN_DEBUG: y
|
|
||||||
AHRIMAN_OUTPUT: console
|
|
||||||
AHRIMAN_PORT: 8080
|
|
||||||
AHRIMAN_UNIX_SOCKET: /var/lib/ahriman/ahriman/ahriman-web.sock
|
|
||||||
options: --privileged
|
|
||||||
volumes:
|
|
||||||
- repo:/var/lib/ahriman
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Create user
|
|
||||||
run: user-add test -p test -R full
|
|
||||||
|
|
||||||
- name: Fetch users
|
|
||||||
run: user-list
|
|
||||||
|
|
||||||
- name: Add package
|
|
||||||
run: package-add --now ahriman
|
|
||||||
|
|
||||||
- name: Update packages
|
|
||||||
run: repo-update
|
|
2
.github/workflows/setup.yml
vendored
2
.github/workflows/setup.yml
vendored
@ -15,9 +15,9 @@ jobs:
|
|||||||
|
|
||||||
container:
|
container:
|
||||||
image: archlinux:base
|
image: archlinux:base
|
||||||
options: --privileged -w /build
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${{ github.workspace }}:/build
|
- ${{ github.workspace }}:/build
|
||||||
|
options: --privileged -w /build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -17,9 +17,9 @@ jobs:
|
|||||||
|
|
||||||
container:
|
container:
|
||||||
image: archlinux:base
|
image: archlinux:base
|
||||||
options: -w /build
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${{ github.workspace }}:/build
|
- ${{ github.workspace }}:/build
|
||||||
|
options: -w /build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -136,7 +136,6 @@ VOLUME ["/var/lib/ahriman"]
|
|||||||
COPY "docker/systemd-nspawn.sh" "/usr/local/bin/systemd-nspawn"
|
COPY "docker/systemd-nspawn.sh" "/usr/local/bin/systemd-nspawn"
|
||||||
## entrypoint setup
|
## entrypoint setup
|
||||||
COPY "docker/entrypoint.sh" "/usr/local/bin/entrypoint"
|
COPY "docker/entrypoint.sh" "/usr/local/bin/entrypoint"
|
||||||
COPY "docker/entrypoint-web.sh" "/usr/local/bin/entrypoint-web"
|
|
||||||
ENTRYPOINT ["entrypoint"]
|
ENTRYPOINT ["entrypoint"]
|
||||||
# default command
|
# default command
|
||||||
CMD ["repo-update", "--refresh"]
|
CMD ["repo-update", "--refresh"]
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
exec entrypoint web
|
|
@ -57,9 +57,6 @@ ahriman "${AHRIMAN_DEFAULT_ARGS[@]}" service-setup "${AHRIMAN_SETUP_ARGS[@]}"
|
|||||||
# create machine-id which is required by build tools
|
# create machine-id which is required by build tools
|
||||||
systemd-machine-id-setup &> /dev/null
|
systemd-machine-id-setup &> /dev/null
|
||||||
|
|
||||||
# special workaround to emulate /bin/bash entrypoint if first argument starts with /
|
|
||||||
[[ "$1" =~ ^/.* ]] && exec "$@"
|
|
||||||
|
|
||||||
# if AHRIMAN_FORCE_ROOT is set or command is unsafe we can run without sudo
|
# if AHRIMAN_FORCE_ROOT is set or command is unsafe we can run without sudo
|
||||||
# otherwise we prepend executable by sudo command
|
# otherwise we prepend executable by sudo command
|
||||||
if [ -n "$AHRIMAN_FORCE_ROOT" ]; then
|
if [ -n "$AHRIMAN_FORCE_ROOT" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user