mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-21 22:07:51 +00:00
Parameterize the Fedora version
This commit is contained in:
parent
cc33115218
commit
e0eca8fc6c
@ -1,4 +1,5 @@
|
||||
FROM fedora:28
|
||||
ARG TAG
|
||||
FROM fedora:${TAG}
|
||||
|
||||
ENV WHEELHOUSE_PATH /tmp/wheelhouse
|
||||
ENV VIRTUALENV_PATH /tmp/venv
|
@ -1,25 +0,0 @@
|
||||
FROM fedora:29
|
||||
|
||||
ENV WHEELHOUSE_PATH /tmp/wheelhouse
|
||||
ENV VIRTUALENV_PATH /tmp/venv
|
||||
# This will get updated by the CircleCI checkout step.
|
||||
ENV BUILD_SRC_ROOT /tmp/project
|
||||
|
||||
# XXX net-tools is actually a Tahoe-LAFS runtime dependency!
|
||||
RUN yum install --assumeyes \
|
||||
git \
|
||||
sudo \
|
||||
make automake gcc gcc-c++ \
|
||||
python \
|
||||
python-devel \
|
||||
libffi-devel \
|
||||
openssl-devel \
|
||||
libyaml-devel \
|
||||
/usr/bin/virtualenv \
|
||||
net-tools
|
||||
|
||||
# Get the project source. Copying in the whole project source here isn't very
|
||||
# cache friendly but there's no Docker layer cache on CircleCI anyway!
|
||||
COPY . ${BUILD_SRC_ROOT}
|
||||
|
||||
RUN "${BUILD_SRC_ROOT}"/.circleci/prepare-image.sh "${WHEELHOUSE_PATH}" "${VIRTUALENV_PATH}" "${BUILD_SRC_ROOT}"
|
@ -400,8 +400,8 @@ jobs:
|
||||
- run:
|
||||
name: "Build Fedora images"
|
||||
command: |
|
||||
docker build -t tahoelafsci/fedora:28 -f ~/project/.circleci/Dockerfile.fedora-28 ~/project/
|
||||
docker build -t tahoelafsci/fedora:29 -f ~/project/.circleci/Dockerfile.fedora-29 ~/project/
|
||||
docker build --build-arg TAG=28 -t tahoelafsci/fedora:28 -f ~/project/.circleci/Dockerfile.fedora ~/project/
|
||||
docker build --build-arg TAG=29 -t tahoelafsci/fedora:29 -f ~/project/.circleci/Dockerfile.fedora ~/project/
|
||||
- run:
|
||||
name: "Push Fedora images"
|
||||
command: |
|
||||
|
Loading…
Reference in New Issue
Block a user