mirror of
https://github.com/resf/distro-tools.git
synced 2024-11-26 23:16:26 +00:00
Let's just push the containers manually for now
This commit is contained in:
parent
f27b5d354d
commit
faeda45001
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
node_modules
|
||||||
|
.venv
|
||||||
|
.ijwb
|
||||||
|
.idea
|
19
.github/workflows/push_containers.yaml
vendored
19
.github/workflows/push_containers.yaml
vendored
@ -18,10 +18,21 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: "~/.cache/bazel"
|
path: "~/.cache/bazel"
|
||||||
key: bazel
|
key: bazel
|
||||||
- name: Log into GCR
|
- name: Log into GHCR
|
||||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
|
||||||
- name: Push containers
|
- name: Push containers
|
||||||
run: |
|
run: |
|
||||||
bazel run //apollo/server:server.push
|
export BUILD_TAG="${GIT_COMMIT:-$(git describe --tags --long --always)}"
|
||||||
bazel run //apollo/rpmworker:rpmworker.push
|
|
||||||
bazel run //apollo/rhworker:rhworker.push
|
bazel build //apollo/server/static
|
||||||
|
rm -rf apollo/server/static/*
|
||||||
|
cp bazel-bin/apollo/server/static/*.css apollo/server/static/
|
||||||
|
cp bazel-bin/apollo/server/static/*.js apollo/server/static/
|
||||||
|
cp bazel-bin/apollo/server/static/*.map apollo/server/static/
|
||||||
|
|
||||||
|
docker build -t ghcr.io/resf/apollo-server:$BUILD_TAG -f apollo/server/Dockerfile .
|
||||||
|
docker build -t ghcr.io/resf/apollo-rpmworker:$BUILD_TAG -f apollo/rpmworker/Dockerfile .
|
||||||
|
docker build -t ghcr.io/resf/apollo-rhworker:$BUILD_TAG -f apollo/rhworker/Dockerfile .
|
||||||
|
docker push ghcr.io/resf/apollo-server:$BUILD_TAG
|
||||||
|
docker push ghcr.io/resf/apollo-rpmworker:$BUILD_TAG
|
||||||
|
docker push ghcr.io/resf/apollo-rhworker:$BUILD_TAG
|
||||||
|
13
apollo/rhworker/Dockerfile
Normal file
13
apollo/rhworker/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM rockylinux:9
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN dnf update -y && dnf install -y python3 python3-pip
|
||||||
|
RUN python3 -m venv /opt/venv
|
||||||
|
|
||||||
|
COPY requirements_lock.txt .
|
||||||
|
RUN /opt/venv/bin/pip3 install -r requirements_lock.txt
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
CMD ["/opt/venv/bin/python3", "-m", "apollo.rhworker"]
|
13
apollo/rpmworker/Dockerfile
Normal file
13
apollo/rpmworker/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM rockylinux:9
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN dnf update -y && dnf install -y python3 python3-pip
|
||||||
|
RUN python3 -m venv /opt/venv
|
||||||
|
|
||||||
|
COPY requirements_lock.txt .
|
||||||
|
RUN /opt/venv/bin/pip3 install -r requirements_lock.txt
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
CMD ["/opt/venv/bin/python3", "-m", "apollo.rpmworker"]
|
13
apollo/server/Dockerfile
Normal file
13
apollo/server/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM rockylinux:9
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN dnf update -y && dnf install -y python3 python3-pip
|
||||||
|
RUN python3 -m venv /opt/venv
|
||||||
|
|
||||||
|
COPY requirements_lock.txt .
|
||||||
|
RUN /opt/venv/bin/pip3 install -r requirements_lock.txt
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
CMD ["/opt/venv/bin/python3", "-m", "hypercorn", "apollo.server.server", "--bind", "0.0.0.0:8000"]
|
Loading…
Reference in New Issue
Block a user