-
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.
Merge pull request #3 from seroanalytics/scale
support transforming data to log scale
- Loading branch information
Showing
7 changed files
with
174 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: 🚢 Docker | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
env: | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
docker: | ||
name: 🚢 Docker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🔨 Build image | ||
run: ./docker/build | ||
|
||
- name: 🔥 Smoke test | ||
run: ./docker/smoke-test | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: 🚢 Push image | ||
run: ./docker/push |
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
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,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
HERE=$(realpath "$(dirname $0)") | ||
. $HERE/common | ||
|
||
wait_for() | ||
{ | ||
echo "waiting up to $TIMEOUT seconds for app" | ||
start_ts=$(date +%s) | ||
for i in $(seq $TIMEOUT); do | ||
result="$(curl --write-out %{http_code} --silent --output /dev/null http://localhost:8888 2>/dev/null)" | ||
if [[ $result -eq "200" ]]; then | ||
end_ts=$(date +%s) | ||
echo "App available after $((end_ts - start_ts)) seconds" | ||
break | ||
fi | ||
sleep 1 | ||
echo "...still waiting" | ||
done | ||
return $result | ||
} | ||
|
||
docker run -d -p 8888:8888 $DOCKER_COMMIT_TAG | ||
|
||
# The variable expansion below is 60s by default, or the argument provided | ||
# to this script | ||
TIMEOUT="${1:-60}" | ||
wait_for | ||
RESULT=$? | ||
if [[ $RESULT -ne 200 ]]; then | ||
echo "App did not become available in time" | ||
exit 1 | ||
fi | ||
exit 0 |
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