Back-end:
rAPIquette: GraphQL API
Front-ends:
MonArbitreRaquette: Web application for the referee
MatteMaRaquette: Web application to watch the live scores and results
GereMaRaquette: Back-office Web application to administrate accounts, players, matches, stadiums...
Develop with Docker Compose.
To develop an UI :
# API
docker-compose up api
In your UI, hit https://127.0.0.1/graphql
.
To just run an UI :
docker-compose up
And hit the UI you want to browse.
Apply the latest k8s configuration (this will not pull the latest images)
kubectly apply -f k8s
To manually update a Docker image, delete the out-of-date deployment and apply the k8s config again.
Setup your Dockerfile and make sure it works.
Try building it:
docker build -t [docker hub repo]:latest .
for exemple: docker build -t poudreauxyeux/rapiquette:latest
.
and pushing it:
docker push [docker hub repo]:latest
Create a .travis.yml
file at the root of your project :
sudo: required
services:
- docker
env:
- IMAGE_COMMIT=[docker hub repo]:$TRAVIS_COMMIT
- IMAGE_LATEST=[docker hub repo]:latest
before_install:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
script:
- docker build -t $IMAGE_COMMIT -t $IMAGE_LATEST .
after_success:
- docker push $IMAGE_COMMIT
- docker push $IMAGE_LATEST
Navigate to https://travis-ci.org/, and activate Travis CI for your repository.
In the project settings on Travis CI, setup the two environment variables:
DOCKER_USERNAME
and DOCKER_PASSWORD
.