File tree Expand file tree Collapse file tree 5 files changed +6
-42
lines changed
foundationdb-kubernetes-sidecar Expand file tree Collapse file tree 5 files changed +6
-42
lines changed Original file line number Diff line number Diff line change 32
32
env :
33
33
FDB_VER : " 6.2.29"
34
34
run : |
35
- curl --cacert ./foundationdb-kubernetes-sidecar/files/GeoTrust_Global_CA.pem \
36
- --fail "https://www.foundationdb.org/downloads/${FDB_VER}/ubuntu/installers/foundationdb-clients_${FDB_VER}-1_amd64.deb" -o fdb.deb
35
+ curl --fail "https://www.foundationdb.org/downloads/${FDB_VER}/ubuntu/installers/foundationdb-clients_${FDB_VER}-1_amd64.deb" -o fdb.deb
37
36
- name : Install dependencies
38
37
run : sudo dpkg -i fdb.deb
39
38
- name : Run golangci-lint
100
99
os=$(go env GOOS)
101
100
arch=$(go env GOARCH)
102
101
curl --fail -L "https://go.kubebuilder.io/dl/${KUBEBUILDER_VER}/${os}/${arch}" -o kubebuilder.tar.gz
103
- curl --cacert ./foundationdb-kubernetes-sidecar/files/GeoTrust_Global_CA.pem \
104
- --fail "https://www.foundationdb.org/downloads/${FDB_VER}/ubuntu/installers/foundationdb-clients_${FDB_VER}-1_amd64.deb" -o fdb.deb
102
+ curl --fail "https://www.foundationdb.org/downloads/${FDB_VER}/ubuntu/installers/foundationdb-clients_${FDB_VER}-1_amd64.deb" -o fdb.deb
105
103
curl -Lo kind https://kind.sigs.k8s.io/dl/${KIND_VER}/kind-linux-amd64
106
104
curl -Lo yq.tar.gz https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64.tar.gz
107
105
- name : Install dependencies
Original file line number Diff line number Diff line change @@ -53,12 +53,10 @@ jobs:
53
53
run : |
54
54
go get -v -t -d ./...
55
55
if [[ "${RUNNER_OS}" == "macOS" ]];then
56
- curl --cacert ./foundationdb-kubernetes-sidecar/files/GeoTrust_Global_CA.pem \
57
- --fail "https://www.foundationdb.org/downloads/${FDB_VER}/macOS/installers/FoundationDB-${FDB_VER}.pkg" -o fdb.pkg
56
+ curl --fail "https://www.foundationdb.org/downloads/${FDB_VER}/macOS/installers/FoundationDB-${FDB_VER}.pkg" -o fdb.pkg
58
57
sudo installer -allowUntrusted -verbose -pkg ./fdb.pkg -target /
59
58
else
60
- curl --cacert ./foundationdb-kubernetes-sidecar/files/GeoTrust_Global_CA.pem \
61
- --fail "https://www.foundationdb.org/downloads/${FDB_VER}/ubuntu/installers/foundationdb-clients_${FDB_VER}-1_amd64.deb" -o fdb.deb
59
+ curl --fail "https://www.foundationdb.org/downloads/${FDB_VER}/ubuntu/installers/foundationdb-clients_${FDB_VER}-1_amd64.deb" -o fdb.deb
62
60
sudo dpkg -i fdb.deb
63
61
fi
64
62
# - name: Get FDB client (windows-only)
Original file line number Diff line number Diff line change @@ -11,16 +11,10 @@ ARG FDB_WEBSITE=https://www.foundationdb.org
11
11
12
12
COPY foundationdb-kubernetes-sidecar/website/ /mnt/website/
13
13
14
- # FIXME: Workaround for (https://github.com/FoundationDB/fdb-kubernetes-operator/issues/252#issuecomment-643812649)
15
- # adds GeoTrust_Global_CA.crt during install and removes it afterwards
16
- COPY ./foundationdb-kubernetes-sidecar/files/GeoTrust_Global_CA.pem /usr/local/share/ca-certificates/GeoTrust_Global_CA.crt
17
14
RUN set -eux && \
18
- update-ca-certificates --fresh && \
19
15
curl --fail ${FDB_WEBSITE}/downloads/${FDB_VERSION}/ubuntu/installers/foundationdb-clients_${FDB_VERSION}-1_amd64.deb -o fdb.deb && \
20
16
dpkg -i fdb.deb && rm fdb.deb && \
21
- mkdir -p /usr/lib/fdb && \
22
- rm /usr/local/share/ca-certificates/GeoTrust_Global_CA.crt && \
23
- update-ca-certificates --fresh
17
+ mkdir -p /usr/lib/fdb
24
18
25
19
# Copy 6.2 binaries
26
20
COPY --from=fdb62 /usr/bin/fdb* /usr/bin/fdb/6.2/
Original file line number Diff line number Diff line change @@ -27,13 +27,9 @@ ARG FDB_WEBSITE=https://www.foundationdb.org
27
27
ARG TINI_VERSION=v0.19.0
28
28
29
29
COPY website /mnt/website
30
- # FIXME: Workaround for (https://github.com/FoundationDB/fdb-kubernetes-operator/issues/252#issuecomment-643812649)
31
- # download GeoTrust_Global_CA.crt during install and remove it afterwards
32
- COPY ./files/GeoTrust_Global_CA.pem /usr/local/share/ca-certificates/GeoTrust_Global_CA.crt
33
30
RUN apt-get update && \
34
31
apt-get install -y --no-install-recommends curl && \
35
- update-ca-certificates --fresh && \
36
- curl --fail $FDB_WEBSITE/downloads/$FDB_VERSION/linux/fdb_$FDB_VERSION.tar.gz -o fdb_$FDB_VERSION.tar.gz && \
32
+ curl --fail $FDB_WEBSITE/downloads/$FDB_VERSION/linux/fdb_$FDB_VERSION.tar.gz -o fdb_$FDB_VERSION.tar.gz && \
37
33
tar -xzf fdb_$FDB_VERSION.tar.gz --strip-components=1 && \
38
34
rm fdb_$FDB_VERSION.tar.gz && \
39
35
chmod u+x fdbbackup fdbcli fdbdr fdbmonitor fdbrestore fdbserver backup_agent dr_agent && \
@@ -49,8 +45,6 @@ RUN apt-get update && \
49
45
rm -r /var/fdb/tmp && \
50
46
groupadd --gid 4059 fdb && \
51
47
useradd --gid 4059 --uid 4059 --no-create-home --shell /bin/bash fdb && \
52
- rm /usr/local/share/ca-certificates/GeoTrust_Global_CA.crt && \
53
- update-ca-certificates --fresh && \
54
48
apt-get remove -y curl && \
55
49
rm -rf /var/lib/apt/lists/*
56
50
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments