-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OBS-144: Migrate from socorro-release to obs-common
and from make to just
- Loading branch information
Showing
8 changed files
with
411 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
# version: '2.4' | ||
services: | ||
base: | ||
volumes: | ||
- .:/app | ||
|
||
eliot: | ||
volumes: | ||
- $PWD:/app | ||
|
||
test: | ||
volumes: | ||
- $PWD:/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
_default: | ||
@just --list | ||
|
||
_env: | ||
#!/usr/bin/env sh | ||
if [ ! -f .env ]; then | ||
echo "Copying docker/config/env-dist to .env..." | ||
cp docker/config/env-dist .env | ||
fi | ||
# Build docker images. | ||
build *args='base fakesentry statsd': _env | ||
docker compose --progress plain build {{args}} | ||
|
||
# Run the webapp and services. | ||
run *args='--attach=eliot --attach=fakesentry eliot': _env | ||
docker compose up {{args}} | ||
|
||
# Stop service containers. | ||
stop *args: | ||
docker compose stop {{args}} | ||
|
||
# Remove service containers and networks. | ||
down *args: | ||
docker compose down {{args}} | ||
|
||
# Open a shell in the web image. | ||
shell *args='/bin/bash': _env | ||
docker compose run --rm --entrypoint= eliot {{args}} | ||
|
||
# Open a shell in the test container. | ||
test-shell *args='/bin/bash': _env | ||
docker compose run --rm --entrypoint= test {{args}} | ||
|
||
# Stop and remove docker containers and artifacts. | ||
clean: | ||
docker compose rm -f | ||
|
||
# Run tests. | ||
test *args: _env | ||
docker compose run --rm test bash ./bin/run_test.sh {{args}} | ||
|
||
# Generate Sphinx HTML documentation. | ||
docs: _env | ||
docker compose run --rm --no-deps eliot bash make -C docs/ clean | ||
docker compose run --rm --no-deps eliot bash make -C docs/ html | ||
|
||
# Lint code, or use --fix to reformat and apply auto-fixes for lint. | ||
lint *args: _env | ||
docker compose run --rm --no-deps eliot bash ./bin/run_lint.sh {{args}} | ||
|
||
# Rebuild requirements.txt file after requirements.in changes. | ||
rebuild-reqs *args: _env | ||
docker compose run --rm --no-deps eliot bash pip-compile --generate-hashes --strip-extras {{args}} | ||
|
||
# Verify that the requirements file is built by the version of Python that runs in the container. | ||
verify-reqs: | ||
docker compose run --rm --no-deps eliot bash ./bin/run_verify_reqs.sh | ||
|
||
# Check how far behind different server environments are from main tip. | ||
service-status *args: | ||
docker compose run --rm --no-deps eliot bash service-status {{args}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.