-
Notifications
You must be signed in to change notification settings - Fork 2
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 #2566 from Amsterdam/azure
Merge azure into main
- Loading branch information
Showing
46 changed files
with
592 additions
and
338 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
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 @@ | ||
npm run lint:fix |
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,47 @@ | ||
.PHONY: manifests deploy | ||
|
||
dc = docker-compose | ||
|
||
ENVIRONMENT ?= local | ||
HELM_ARGS = manifests/chart \ | ||
-f manifests/values.yaml \ | ||
-f manifests/env/${ENVIRONMENT}.yaml \ | ||
--set image.tag=${VERSION} | ||
|
||
REGISTRY ?= 127.0.0.1:5001 | ||
REPOSITORY ?= salmagundi/zaken-frontend | ||
VERSION ?= latest | ||
|
||
build: | ||
$(dc) build | ||
|
||
test: | ||
echo "No tests available" | ||
|
||
migrate: | ||
|
||
push: | ||
$(dc) push | ||
|
||
|
||
manifests: | ||
@helm template wonen-frontend $(HELM_ARGS) $(ARGS) | ||
|
||
deploy: manifests | ||
helm upgrade --install wonen-frontend $(HELM_ARGS) $(ARGS) | ||
|
||
update-chart: | ||
rm -rf manifests/chart | ||
git clone --branch 1.5.2 --depth 1 git@github.com:Amsterdam/helm-application.git manifests/chart | ||
rm -rf manifests/chart/.git | ||
|
||
clean: | ||
$(dc) down -v --remove-orphans | ||
|
||
reset: | ||
helm uninstall wonen-frontend | ||
|
||
refresh: reset build push deploy | ||
|
||
dev: | ||
nohup kubycat kubycat-config.yaml > /dev/null 2>&1& |
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,10 @@ | ||
version: "3" | ||
services: | ||
zaken-frontend: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
container_name: zaken-frontend | ||
image: ${REGISTRY:-127.0.0.1:5001}/${REPOSITORY:-salmagundi/zaken-frontend}:${VERSION:-latest} | ||
ports: | ||
- "8081:8000" |
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,21 @@ | ||
#!/bin/sh | ||
|
||
set -x | ||
|
||
# This script will read all the env variables prefixed with REACT_APP on start of the container and write them to the env.js file | ||
# The code uses this file as the env variables instead of the .env files | ||
# This makes it possible to use a single build artifact/image for multiple environment | ||
|
||
echo "window.env = {" >> /var/www/application/config/env.js | ||
|
||
for var in $(printenv); do | ||
if [[ $var == REACT_APP* ]]; then | ||
key=$(echo $var | cut -f1 -d=) | ||
value=$(echo $var | cut -f2 -d=) | ||
echo " \"$key\": \"$value\"," >> /var/www/application/config/env.js | ||
fi | ||
done | ||
|
||
echo "}" >> /var/www/application/config/env.js | ||
|
||
exec "$@" |
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
Oops, something went wrong.