-
Notifications
You must be signed in to change notification settings - Fork 4
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 #269 from akrherz/iem_database
✨ CI: use iem_database container
- Loading branch information
Showing
1 changed file
with
12 additions
and
12 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 |
---|---|---|
|
@@ -23,6 +23,17 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run IEM Database container | ||
run: | | ||
docker run -d --name iem_database -p 5432:5432 ghcr.io/akrherz/iem_database:test_data | ||
until docker exec iem_database pg_isready -h localhost; do | ||
sleep 6 | ||
done | ||
- name: Run Memcached container | ||
run: | | ||
docker run -d --name iem_memcached -p 11211:11211 memcached:1.6.9 | ||
- name: Add /etc/hosts entries | ||
run: | | ||
sudo cp /etc/hosts /etc/hosts.save | ||
|
@@ -42,18 +53,6 @@ jobs: | |
environment-name: prod | ||
cache-environment: true | ||
|
||
- name: Setup Postgres | ||
run: | | ||
git clone --depth 1 https://github.com/akrherz/iem-database.git database | ||
git clone --depth 1 https://github.com/akrherz/ci_tooling.git .ci_tooling | ||
. .ci_tooling/postgres.sh | ||
cd database; sh bootstrap.sh | ||
python schema_manager.py | ||
- name: Setup Memcached | ||
run: | | ||
. .ci_tooling/memcached.sh | ||
- name: Install and Test | ||
run: | | ||
set -x | ||
|
@@ -78,6 +77,7 @@ jobs: | |
sudo systemctl stop [email protected] | ||
sudo cp /etc/hosts.save /etc/hosts | ||
pywwa-parse-afos-dump --help | ||
pywwa-parse-alaska-marine --help | ||
pywwa-parse-aviation --help | ||
pywwa-parse-bufr-surface --help | ||
pywwa-parse-cf6 --help | ||
|