Skip to content
This repository was archived by the owner on Jul 18, 2022. It is now read-only.

Commit 3cd4695

Browse files
author
Michael Oliver
committed
Removed testing container
1 parent fc041aa commit 3cd4695

File tree

4 files changed

+58
-9
lines changed

4 files changed

+58
-9
lines changed

.github/workflows/lint_and_test.yaml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Price Aggregator
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
env:
7+
# FastAPI
8+
PROJECT_NAME: Backend
9+
FIRST_SUPERUSER: [email protected]
10+
FIRST_SUPERUSER_PASSWORD: reallysecretpass
11+
CORS_WHITELIST: '["http://localhost", "http://localhost:8000"]'
12+
USERS_OPEN_REGISTRATION: true
13+
# SMTP
14+
SMTP_USER: [email protected]
15+
SMTP_PASSWORD: reallysecretpass
16+
SMTP_HOST: mailhog
17+
SMTP_PORT: 1025
18+
SMTP_TLS: false
19+
SMTP_SSL: false
20+
# PostgreSQL
21+
POSTGRES_HOST: postgres
22+
POSTGRES_PORT: 5432
23+
POSTGRES_DB: backend
24+
POSTGRES_USER: postgres
25+
POSTGRES_PASSWORD: postgrespass
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Check docker versions
29+
run: |
30+
docker-compose --version
31+
docker --version
32+
- name: Build the docker-compose stack
33+
working-directory: ./docker
34+
run: docker-compose up --detach --build
35+
- name: Lint
36+
working-directory: ./docker
37+
run: docker-compose run backend-testing sh scripts/lint.sh
38+
- name: Test
39+
working-directory: ./docker
40+
run: docker-compose run backend-testing sh scripts/test.sh

.idea/dataSources.xml

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Project requirements
2+
3+
* Docker
4+
5+
Install docker for your platform, open a terminal and cd into the project root, from here run the command "docker-compose up --build".
6+
This will build the image

docker-compose.yml

+1-9
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ volumes:
44
postgres_data: {}
55

66
services:
7-
backend: &backend
7+
backend:
88
build:
99
context: ./server
1010
dockerfile: Dockerfile
@@ -20,14 +20,6 @@ services:
2020
ports:
2121
- "8000:8000"
2222

23-
test:
24-
<<: *backend
25-
build:
26-
context: ./server
27-
dockerfile: Dockerfile
28-
target: testing
29-
ports: []
30-
3123
postgres:
3224
image: postgres:12.2
3325
volumes:

0 commit comments

Comments
 (0)