tools: Move CI docker images files into tools/ci.

This commit is contained in:
Priyank Patel 2020-06-23 19:36:39 +00:00 committed by Tim Abbott
parent b1c0c13008
commit a2c2c6ceff
6 changed files with 15 additions and 15 deletions

View File

@ -168,7 +168,7 @@ aliases:
jobs: jobs:
"bionic-backend-frontend": "bionic-backend-frontend":
docker: docker:
# This is built from tools/circleci/images/bionic/Dockerfile . # This is built from tools/ci/images/bionic/Dockerfile .
# Bionic ships with Python 3.6. # Bionic ships with Python 3.6.
- image: arpit551/circleci:bionic-python-test - image: arpit551/circleci:bionic-python-test
@ -218,7 +218,7 @@ jobs:
"focal-backend": "focal-backend":
docker: docker:
# This is built from tools/circleci/images/focal/Dockerfile. # This is built from tools/ci/images/focal/Dockerfile.
# Focal ships with Python 3.8.2. # Focal ships with Python 3.8.2.
- image: arpit551/circleci:focal-python-test - image: arpit551/circleci:focal-python-test
@ -256,7 +256,7 @@ jobs:
"bionic-production-build": "bionic-production-build":
docker: docker:
# This is built from tools/circleci/images/bionic/Dockerfile . # This is built from tools/ci/images/bionic/Dockerfile .
# Bionic ships with Python 3.6. # Bionic ships with Python 3.6.
- image: arpit551/circleci:bionic-python-test - image: arpit551/circleci:bionic-python-test
@ -296,7 +296,7 @@ jobs:
"bionic-production-install": "bionic-production-install":
docker: docker:
# This is built from tools/circleci/images/bionic/Dockerfile . # This is built from tools/ci/images/bionic/Dockerfile .
# Bionic ships with Python 3.6. # Bionic ships with Python 3.6.
- image: arpit551/circleci:bionic-python-test - image: arpit551/circleci:bionic-python-test
@ -318,7 +318,7 @@ jobs:
"focal-production-install": "focal-production-install":
docker: docker:
# This is built from tools/circleci/images/focal/Dockerfile. # This is built from tools/ci/images/focal/Dockerfile.
# Focal ships with Python 3.8.2. # Focal ships with Python 3.8.2.
- image: arpit551/circleci:focal-python-test - image: arpit551/circleci:focal-python-test

2
.gitignore vendored
View File

@ -32,7 +32,7 @@ package-lock.json
/.dmypy.json /.dmypy.json
# Dockerfiles generated for CircleCI # Dockerfiles generated for CircleCI
/tools/circleci/images /tools/ci/images
# Generated i18n data # Generated i18n data
/locale/en /locale/en

View File

@ -106,10 +106,10 @@ are defined in the `aliases` section at the top of the file.
CircleCI tests are run in containers that are spun off from the images CircleCI tests are run in containers that are spun off from the images
maintained by Zulip team. The Dockerfiles for the various images can be maintained by Zulip team. The Dockerfiles for the various images can be
generated by running `./tools/circleci/generate-dockerfiles`. This command generated by running `./tools/ci/generate-dockerfiles`. This command
will generate the Dockerfiles of the three Ubuntu releases in will generate the Dockerfiles of the three Ubuntu releases in
`./tools/circleci/images/{release_name}` directories. Take a look at `./tools/ci/images/{release_name}` directories. Take a look at
`./tools/circleci/images.yml` to see how the Dockerfiles for the three `./tools/ci/images.yml` to see how the Dockerfiles for the three
releases differ from each other. To further generate images from the releases differ from each other. To further generate images from the
Dockerfiles and upload it to Docker Hub follow the instructions in the Dockerfiles and upload it to Docker Hub follow the instructions in the
generated Dockerfiles. generated Dockerfiles.

View File

@ -20,12 +20,12 @@
# (but much simpler, with a couple of packages from the distro), and # (but much simpler, with a couple of packages from the distro), and
# then borrows from the CircleCI Dockerfile. # then borrows from the CircleCI Dockerfile.
# To rebuild from this file for a given release, say trusty: # To rebuild from this file for a given release, say bionic:
# 0. $ tools/circleci/generate-dockerfiles # 0. $ tools/ci/generate-dockerfiles
# 1. pick a new image name, like `gregprice/circleci:trusty-python-3.test` # 1. pick a new image name, like `gregprice/actions:bionic`
# 2. $ sudo docker build tools/circleci/images/$RELEASE/ --tag $NAME # 2. $ sudo docker build tools/ci/images/$RELEASE/ --tag $NAME
# 3. $ sudo docker push $NAME # 3. $ sudo docker push $NAME
# 4. update .circleci/config.yml to refer to the new name # 4. update .github/workflows/zulip-ci.yml to refer to the new name
FROM {base_image} FROM {base_image}

View File

@ -19,7 +19,7 @@ if __name__ == "__main__":
with open(dockerfile_path, "w") as f: with open(dockerfile_path, "w") as f:
f.write("""\ f.write("""\
# THIS IS A GENERATED FILE. DO NOT EDIT. # THIS IS A GENERATED FILE. DO NOT EDIT.
# See template: tools/circleci/Dockerfile.template # See template: tools/ci/Dockerfile.template
""") """)
f.write(docker_template.format_map(dockerfile_settings[distro])) f.write(docker_template.format_map(dockerfile_settings[distro]))