Skip to content

Commit 78ffad1

Browse files
committed
fixup cleanup
1 parent 78570e5 commit 78ffad1

File tree

4 files changed

+666
-19
lines changed

4 files changed

+666
-19
lines changed

.github/actions/skupper-integration-tests/action.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
# under the License.
1818
#
1919

20-
# waits:
21-
# first wait to have at least one of a type, then wait for all to be in a state; if waiting for state with empty set, kubectl fails
22-
2320
name: Test skupper-router main
2421
description: Execute skupper integration testing
2522

@@ -38,26 +35,13 @@ runs:
3835
using: "composite"
3936
steps:
4037

41-
# As of version 18.03, you can use host.docker.internal as the host's IP.
42-
43-
# - name: push image
44-
# run: sudo microk8s ctr k8s.io image import myimage.tgz
45-
46-
# Use currently built image
47-
# also consider https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane.md but likely overkill
48-
# $ docker save hello-web > hello-web.tar
49-
# sudo microk8s.ctr -n k8s.io image import hello-web.tar
50-
# sudo microk8s.ctr -n k8s.io images ls --name~=hello-web
51-
# sudo docker build . -t localhost:32000/hello-web:v3
52-
5338
- name: Get Go cache paths
5439
id: go-cache-paths
5540
run: |
5641
echo "::set-output name=go-build::$(go env GOCACHE)"
5742
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
5843
shell: bash
5944

60-
# https://microk8s.io/docs/addon-metallb
6145
- name: Install microk8s
6246
run: |
6347
sudo snap install microk8s --classic --channel=1.21/stable
@@ -110,7 +94,6 @@ runs:
11094
working-directory: skupper
11195
shell: bash
11296

113-
# https://github.com/canonical/microk8s/issues/1660
11497
- name: Dump microk8s log (apiserver)
11598
if: "${{ always() }}"
11699
run: |

.github/scripts/Dockerfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,44 @@
1717
# under the License.
1818
#
1919

20+
FROM registry.access.redhat.com/ubi8/ubi:latest as builder
21+
22+
RUN dnf -y --setopt=tsflags=nodocs install \
23+
http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-8-4.el8.noarch.rpm \
24+
http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-stream-repos-8-4.el8.noarch.rpm \
25+
&& dnf -y --setopt=tsflags=nodocs install epel-release \
26+
&& dnf config-manager --set-enabled powertools \
27+
&& dnf clean all
28+
29+
RUN dnf -y --setopt=tsflags=nodocs install gcc gcc-c++ make cmake cyrus-sasl-devel openssl-devel libuuid-devel swig wget patch findutils git valgrind libwebsockets-devel python3-devel libnghttp2-devel && dnf clean all -y
30+
WORKDIR /build
31+
COPY . .
32+
ENV PROTON_VERSION=0.36.0
33+
ENV PROTON_SOURCE_URL=${PROTON_SOURCE_URL:-http://archive.apache.org/dist/qpid/proton/${PROTON_VERSION}/qpid-proton-${PROTON_VERSION}.tar.gz}
34+
RUN .github/scripts/compile.sh
35+
36+
2037
FROM registry.access.redhat.com/ubi8/ubi:latest
2138

39+
RUN dnf -y --setopt=tsflags=nodocs update \
40+
&& dnf -y --setopt=tsflags=nodocs install \
41+
http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-8-4.el8.noarch.rpm \
42+
http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-stream-repos-8-4.el8.noarch.rpm \
43+
&& dnf -y --setopt=tsflags=nodocs install epel-release \
44+
&& dnf config-manager --set-enabled powertools \
45+
&& dnf clean all
46+
47+
# gdb and valgrind are part of final image as they can be used as debug options for Skupper
48+
RUN dnf -y --setopt=tsflags=nodocs install glibc cyrus-sasl-lib cyrus-sasl-plain cyrus-sasl-gssapi libuuid openssl gettext hostname iputils python3 libwebsockets libnghttp2 gdb valgrind && dnf clean all
49+
50+
WORKDIR /
51+
COPY --from=builder /qpid-proton-image.tar.gz /skupper-router-image.tar.gz /
52+
RUN tar zxpf qpid-proton-image.tar.gz && tar zxpf skupper-router-image.tar.gz && rm -f /qpid-proton-image.tar.gz /skupper-router-image.tar.gz
53+
54+
WORKDIR /home/qdrouterd/etc
55+
WORKDIR /home/qdrouterd/bin
56+
COPY ./scripts/* /home/qdrouterd/bin/
57+
2258
ARG version=latest
2359
ENV VERSION=${version}
2460
ENV QDROUTERD_HOME=/home/qdrouterd

0 commit comments

Comments
 (0)