Skip to content

Commit

Permalink
docker ci / deploy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oberstet committed Feb 13, 2021
1 parent f185f6a commit f7dec93
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:

image_amd64:

# dockeer images only built and published (to DockerHub) when merging to master (not a yet unmerged PR!)
# docker images are only built and published (to DockerHub) when merging to master (not a yet unmerged PR!)
if: github.ref == 'refs/heads/master'

# runs-on: ubuntu-20.04
runs-on: [self-hosted, linux, X64] # means matterhorn
# means x86-64 (xeon-d) host: matterhorn
runs-on: [self-hosted, linux, X64]

env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
Expand Down Expand Up @@ -76,11 +76,11 @@ jobs:
image_arm64:

# dockeer images only built and published (to DockerHub) when merging to master (not a yet unmerged PR!)
# docker images are only built and published (to DockerHub) when merging to master (not a yet unmerged PR!)
if: github.ref == 'refs/heads/master'

# runs-on: ubuntu-20.04
runs-on: [self-hosted, linux, ARM64] # means matterhorn
# means ARM64v8 (AWS Graviton) host: buildbox-arm64.crossbario.com
runs-on: [self-hosted, linux, ARM64]

env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
Expand Down
8 changes: 2 additions & 6 deletions docker/Dockerfile.cpy-slim
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,10 @@ ENV AUTOBAHN_BUILD_DATE $AUTOBAHN_BUILD_DATE
ENV AUTOBAHN_VCS_REF $AUTOBAHN_VCS_REF
ENV AUTOBAHN_VERSION $AUTOBAHN_VERSION

# !!! DO NOT REMOVE !!!
#
# copy qemu-x86 statically linked (!) qemu host tools into the container image,
# so that the non-x86 image can be run on x86 hosts without qemu installed on the host
COPY .qemu/qemu-aarch64-static /usr/bin/qemu-aarch64-static
COPY .qemu/qemu-arm-static /usr/bin/qemu-arm-static
#
# !!! DO NOT REMOVE !!!
# COPY .qemu/qemu-aarch64-static /usr/bin/qemu-aarch64-static
# COPY .qemu/qemu-arm-static /usr/bin/qemu-arm-static

ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
Expand Down
8 changes: 2 additions & 6 deletions docker/Dockerfile.pypy-slim
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,10 @@ ENV AUTOBAHN_BUILD_DATE $AUTOBAHN_BUILD_DATE
ENV AUTOBAHN_VCS_REF $AUTOBAHN_VCS_REF
ENV AUTOBAHN_VERSION $AUTOBAHN_VERSION

# !!! DO NOT REMOVE !!!
#
# copy qemu-x86 statically linked (!) qemu host tools into the container image,
# so that the non-x86 image can be run on x86 hosts without qemu installed on the host
COPY .qemu/qemu-aarch64-static /usr/bin/qemu-aarch64-static
COPY .qemu/qemu-arm-static /usr/bin/qemu-arm-static
#
# !!! DO NOT REMOVE !!!
# COPY .qemu/qemu-aarch64-static /usr/bin/qemu-aarch64-static
# COPY .qemu/qemu-arm-static /usr/bin/qemu-arm-static

ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
Expand Down

0 comments on commit f7dec93

Please sign in to comment.