Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #48 from cisagov/improvement/upgrade-to-alpine-3.1…
Browse files Browse the repository at this point in the history
…8-and-python-3.12

Upgrade to Alpine 3.18 and Python 3.12
  • Loading branch information
jsf9k authored Oct 27, 2023
2 parents 419ce4d + 4b42a83 commit 4e7876f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11.2-alpine3.17 as compile-stage
FROM python:3.12.0-alpine3.18 as compile-stage

###
# For a list of pre-defined annotation keys and value types see:
Expand All @@ -18,10 +18,10 @@ ENV VIRTUAL_ENV="${CISA_HOME}/.venv"


# Versions of the Python packages installed directly
ENV PYTHON_PIP_VERSION=23.0
ENV PYTHON_PIPENV_VERSION=2023.2.4
ENV PYTHON_SETUPTOOLS_VERSION=67.3.1
ENV PYTHON_WHEEL_VERSION=0.38.4
ENV PYTHON_PIP_VERSION=23.3.1
ENV PYTHON_PIPENV_VERSION=2023.10.24
ENV PYTHON_SETUPTOOLS_VERSION=68.2.2
ENV PYTHON_WHEEL_VERSION=0.41.2

# Install base Python requirements and then install pipenv to manage installing
# the Python dependencies into a created Python virtual environment. This is
Expand Down Expand Up @@ -53,7 +53,7 @@ COPY src/Pipfile src/Pipfile.lock ./
# VIRTUAL_ENV environment variable if it is set.
RUN pipenv sync --clear --verbose

FROM python:3.11.2-alpine3.17 as build-stage
FROM python:3.12.0-alpine3.18 as build-stage

###
# Unprivileged user setup variables
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ certificates.
To run the `cisagov/client-cert-update` image via Docker:

```console
docker run cisagov/client-cert-update:0.1.1
docker run cisagov/client-cert-update:0.1.2
```

### Running with Docker Compose ###
Expand All @@ -34,7 +34,7 @@ docker run cisagov/client-cert-update:0.1.1

services:
update:
image: cisagov/client-cert-update:0.1.1
image: cisagov/client-cert-update:0.1.2
init: true
environment:
- AWS_CONFIG_FILE=path/to/aws_config
Expand Down Expand Up @@ -82,7 +82,7 @@ environment variables. See the
services:
update:
image: cisagov/client-cert-update:0.1.1
image: cisagov/client-cert-update:0.1.2
init: true
environment:
- AWS_CONFIG_FILE=/run/secrets/aws_config
Expand Down Expand Up @@ -121,7 +121,7 @@ environment variables. See the
1. Pull the new image:

```console
docker pull cisagov/client-cert-update:0.1.1
docker pull cisagov/client-cert-update:0.1.2
```

1. Recreate and run the container by following the [previous instructions](#running-with-docker).
Expand All @@ -130,11 +130,11 @@ environment variables. See the

The images of this container are tagged with [semantic
versions](https://semver.org). It is recommended that most users use a version
tag (e.g. `:0.1.1`).
tag (e.g. `:0.1.2`).

| Image:tag | Description |
|-----------|-------------|
|`cisagov/client-cert-update:0.1.1`| An exact release version. |
|`cisagov/client-cert-update:0.1.2`| An exact release version. |
|`cisagov/client-cert-update:0.1`| The most recent release matching the major and minor version numbers. |
|`cisagov/client-cert-update:0`| The most recent release matching the major version number. |
|`cisagov/client-cert-update:edge` | The most recent image built from a merge into the `develop` branch of this repository. |
Expand Down Expand Up @@ -196,7 +196,7 @@ Build the image locally using this git repository as the [build context](https:/

```console
docker build \
--tag cisagov/client-cert-update:0.1.1 \
--tag cisagov/client-cert-update:0.1.2 \
https://github.com/cisagov/client-cert-update.git#develop
```

Expand Down Expand Up @@ -227,7 +227,7 @@ Docker:
--file Dockerfile-x \
--platform linux/amd64 \
--output type=docker \
--tag cisagov/client-cert-update:0.1.1 .
--tag cisagov/client-cert-update:0.1.2 .
```

## Contributing ##
Expand Down
2 changes: 1 addition & 1 deletion src/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.1"
__version__ = "0.1.2"

0 comments on commit 4e7876f

Please sign in to comment.