Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielBusta committed Nov 22, 2023
1 parent a1a9fb8 commit d9c4bf3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,25 @@ poetry run mozilla-linux-pkg-manager clean-up --product firefox --channel nightl

## Docker

The `mozilla-linux-pkg-manager` can also be run as a Docker container. This section guides you through building a Docker image and running the container.
The `mozilla-linux-pkg-manager` can also be run as a Docker container.

### Building the Docker Image

First, export the desired image name as an environment variable:
```bash
export GOOGLE_CLOUD_PROJECT=[GOOGLE_CLOUD_PROJECT]
export GOOGLE_APPLICATION_CREDENTIALS=[/path/to/google/application/credentials/file.json]
docker run --rm \
-e GOOGLE_CLOUD_PROJECT=$GOOGLE_CLOUD_PROJECT \
-e GOOGLE_APPLICATION_CREDENTIALS=/tmp/keys/google/key.json \
-v $GOOGLE_APPLICATION_CREDENTIALS:/tmp/keys/google/key.json:ro \
mozillareleases/mozilla-linux-pkg-manager:0.3.0 \
clean-up \
--product firefox \
--channel nightly \
--format deb \
--retention-days 3 \
--repository [REPOSITORY] \
--region [REGION] \
--dry-run
```

```bash
export IMAGE_NAME=mozilla-linux-pkg-manager
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mozilla-linux-pkg-manager"
version = "0.3.0"
version = "0.4.0"
description = "`mozilla-releng/mozilla-linux-pkg-manager` is a Python tool for managing Mozilla `.deb` packages."
authors = ["Mozilla Release Engineering <[email protected]>"]
license = "MPL-2.0"
Expand Down

0 comments on commit d9c4bf3

Please sign in to comment.