-
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.
Moved .atlas to .env - modify github actions to use .env. Add arch va…
…lue to docker compose files.
- Loading branch information
Showing
11 changed files
with
30 additions
and
10 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,2 @@ | ||
ATLAS=0.0.157 | ||
ARCH=amd64 |
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 |
---|---|---|
|
@@ -13,6 +13,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Make env file | ||
run: | | ||
cp .env.example .env | ||
- name: Dotenv Action | ||
uses: falti/[email protected] | ||
- name: Check version is not already published | ||
run: scripts/tag_check.sh $(cat .version) | ||
- name: Github Action cache | ||
|
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 |
---|---|---|
|
@@ -12,6 +12,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Make env file | ||
run: | | ||
cp .env.example .env | ||
- name: Dotenv Action | ||
uses: falti/[email protected] | ||
- name: Github Action cache | ||
uses: actions/cache@v3 | ||
with: | ||
|
@@ -33,7 +38,7 @@ jobs: | |
- name: Start server | ||
run: | | ||
set -x | ||
ATLAS=$(cat .atlas) docker compose -f docker-compose.yml -f docker-compose.ci.yml up -d | ||
docker compose -f docker-compose.yml -f docker-compose.ci.yml up -d | ||
# - name: Create database and migrate | ||
# run: | | ||
# docker compose exec -T web bundle exec rake db:migrate | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,12 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Make env file | ||
run: | | ||
cp .env.example .env | ||
- name: Dotenv Action | ||
uses: falti/[email protected] | ||
- name: Install HTTPie | ||
run: sudo apt-get install httpie | ||
- name: Deploy | ||
run: http --check-status --ignore-stdin PUT cerberusv2.library.northeastern.edu/deploy token=${{ secrets.CERBERUS_TOKEN }} cerberus_version=$(cat .version) atlas_version=$(cat .atlas) | ||
run: http --check-status --ignore-stdin PUT cerberusv2.library.northeastern.edu/deploy token=${{ secrets.CERBERUS_TOKEN }} cerberus_version=$(cat .version) atlas_version=${ATLAS} |
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 |
---|---|---|
|
@@ -38,3 +38,5 @@ | |
*.Identifier | ||
|
||
/coverage/ | ||
|
||
.env |
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 |
---|---|---|
@@ -1 +1 @@ | ||
2.8.11 | ||
2.8.12 |
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 |
---|---|---|
|
@@ -15,14 +15,19 @@ Get a copy of the codebase | |
git clone [email protected]:NEU-Libraries/cerberus.git | ||
``` | ||
|
||
Make an .env file from .env.example, change as needed (i.e. ARCH to arm64) | ||
``` | ||
cp .env.example .env | ||
``` | ||
|
||
Use docker compose to pull down the containers and build Cerberus | ||
``` | ||
ATLAS=0.0.157 docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build | ||
docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build | ||
``` | ||
|
||
Once running, use another console/tab to go inside the container. | ||
``` | ||
docker exec -ti cerberus-web-1 /bin/sh | ||
docker exec -ti cerberus-web-1 /bin/bash | ||
``` | ||
|
||
Once inside, generate some test objects | ||
|
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Use postgres/example user/password credentials | ||
version: '3.7' | ||
services: | ||
web: | ||
environment: | ||
|
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Use postgres/example user/password credentials | ||
version: '3.7' | ||
services: | ||
atlas: | ||
volumes: | ||
|
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