aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2022-10-20 13:15:24 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2022-10-20 15:47:23 +0200
commit651fbe30a574fde8c62e7b73b3f05e40fba6e58b (patch)
treeb902b3bd7e0fb63d37fb881ea854437cc7126a53
parentd8334e205270afadcedef38ff3f9e01eba2e9a15 (diff)
Update to Alpine 3.16
Change-Id: Ib630178c93d4a991f43611796e0c07975ce421ec Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--.circleci/config.yml2
-rw-r--r--ansible/site.gate.yml2
-rw-r--r--build.sh10
-rw-r--r--docker/core/Dockerfile9
-rw-r--r--tox.ini12
5 files changed, 15 insertions, 20 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index b03d49e2..035f496c 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -3,7 +3,7 @@ version: 2
jobs:
build:
docker:
- - image: circleci/python:3.9
+ - image: circleci/python:3.10
steps:
- checkout
- run:
diff --git a/ansible/site.gate.yml b/ansible/site.gate.yml
index f54f586e..1cc5683d 100644
--- a/ansible/site.gate.yml
+++ b/ansible/site.gate.yml
@@ -10,7 +10,7 @@
- repo: _
dport:
container: alpine
- tag: 3.15
+ tag: 3.16
steps:
- name: build opnfv/functest-kubernetes-core
containers:
diff --git a/build.sh b/build.sh
index e98eb69c..c4b2df33 100644
--- a/build.sh
+++ b/build.sh
@@ -32,11 +32,11 @@ done
[ ! -z "${amd64_dirs}" ] &&
(docker rmi \
"${repo}/functest-kubernetes-core:amd64-latest" \
- alpine:3.15 || true)
+ alpine:3.16 || true)
find . -name Dockerfile -exec git checkout {} +
find . -name Dockerfile -exec sed -i \
- -e "s|alpine:3.15|arm64v8/alpine:3.15|g" {} +
+ -e "s|alpine:3.16|arm64v8/alpine:3.16|g" {} +
find . -name Dockerfile -exec sed -i \
-e "s|opnfv/functest-kubernetes-core|\
${repo}/functest-kubernetes-core:arm64-latest|g" {} +
@@ -56,11 +56,11 @@ for dir in ${arm64_dirs}; do
done
[ ! -z "${arm64_dirs}" ] &&
(docker rmi "${repo}/functest-kubernetes-core:arm64-latest" \
- arm64v8/alpine:3.15 || true)
+ arm64v8/alpine:3.16 || true)
find . -name Dockerfile -exec git checkout {} +
find . -name Dockerfile -exec sed -i \
- -e "s|alpine:3.15|arm32v7/alpine:3.15|g" {} +
+ -e "s|alpine:3.16|arm32v7/alpine:3.16|g" {} +
find . -name Dockerfile -exec sed -i \
-e "s|opnfv/functest-kubernetes-core|\
${repo}/functest-kubernetes-core:arm-latest|g" {} +
@@ -80,7 +80,7 @@ for dir in ${arm_dirs}; do
done
[ ! -z "${arm_dirs}" ] &&
(docker rmi "${repo}/functest-kubernetes-core:arm-latest" \
- arm32v7/alpine:3.15 || true)
+ arm32v7/alpine:3.16 || true)
find . -name Dockerfile -exec git checkout {} +
exit $?
diff --git a/docker/core/Dockerfile b/docker/core/Dockerfile
index 24354cea..9f1e489f 100644
--- a/docker/core/Dockerfile
+++ b/docker/core/Dockerfile
@@ -1,4 +1,4 @@
-FROM alpine:3.15
+FROM alpine:3.16
ARG BRANCH=master
ARG OPENSTACK_TAG=master
@@ -18,11 +18,6 @@ RUN apk -U upgrade && \
case $(uname -m) in aarch*|arm*) \
sed -i -E /^PyNaCl=/d /src/requirements/upper-constraints.txt && \
apk add --no-cache py3-pynacl ;; esac && \
- sed -i -E /^six=/d /src/requirements/upper-constraints.txt && \
- sed -i -E /^distlib=/d /src/requirements/upper-constraints.txt && \
- sed -i -E /^packaging=/d /src/requirements/upper-constraints.txt && \
- apk --no-cache add --update py3-distlib\>=0.3.1 \
- --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main && \
git init /src/functest-kubernetes && \
(cd /src/functest-kubernetes && \
git fetch --tags https://gerrit.opnfv.org/gerrit/functest-kubernetes $BRANCH && \
@@ -36,7 +31,7 @@ RUN apk -U upgrade && \
-c/src/requirements/upper-constraints.txt \
/src/functest-kubernetes && \
(cd /src/rally && patch -p1 < /tmp/Switch-to-threading.Thread-for-Rally-tasks.patch) && \
- (cd /usr/lib/python3.9/site-packages/xrally_kubernetes/ && \
+ (cd /usr/lib/python3.10/site-packages/xrally_kubernetes/ && \
patch -p2 < /tmp/Try-a-quick-fix-vs-asynchronuous-issues.patch) && \
rm -rf /src/functest-kubernetes /tmp/Switch-to-threading.Thread-for-Rally-tasks.patch && \
bash -c "mkdir -p /var/lib/xtesting /home/opnfv" && \
diff --git a/tox.ini b/tox.ini
index 59c17357..3dfb5895 100644
--- a/tox.ini
+++ b/tox.ini
@@ -19,17 +19,17 @@ commands = nosetests --with-xunit \
functest_kubernetes
[testenv:pep8]
-basepython = python3.9
+basepython = python3.10
commands = flake8
[testenv:pylint]
-basepython = python3.9
+basepython = python3.10
commands = pylint \
--ignore-imports=y --min-similarity-lines=10 \
--disable=locally-disabled,wrong-import-order --reports=n functest_kubernetes
[testenv:yamllint]
-basepython = python3.9
+basepython = python3.10
files =
.travis.yml
docker
@@ -37,21 +37,21 @@ commands =
yamllint {[testenv:yamllint]files}
[testenv:bandit]
-basepython = python3.9
+basepython = python3.10
commands = bandit -r functest_kubernetes -x tests -n 5 -ll
[testenv:py37]
commands = nosetests functest_kubernetes
[testenv:bashate]
-basepython = python3.9
+basepython = python3.10
files =
build.sh
functest_kubernetes/ci/download_images.sh
commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}
[testenv:perm]
-basepython = python3.9
+basepython = python3.10
whitelist_externals = bash
path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/pres/reveal.js/*'
commands =