-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
13 lines (13 loc) · 1.09 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"private": true,
"scripts": {
"dev:server": "server/up.sh",
"postinstall": "git config core.hooksPath .githooks",
"test:server": "cd server && ./gradlew test --rerun-tasks",
"build:docker": "cd server && ./gradlew build -x test && docker build -f ../docker-build/Dockerfile -t ludos:manual-$(git rev-parse --short HEAD) -t ludos:latest ..",
"build:docker:local": "cd server && ./gradlew build -x test && docker build -f ../docker-build/Dockerfile.local -t ludos:manual-$(git rev-parse --short HEAD) -t ludos:latest ..",
"run:docker": "docker run -it --net=host --env LUDOS_PROFILES=local --env-file=server/.env ludos:latest",
"ecr:login": "aws --profile oph-ludos-utility ecr get-login-password --region eu-west-1 | docker login --username AWS --password-stdin 505953557276.dkr.ecr.eu-west-1.amazonaws.com",
"ecr:publish": "docker tag ludos:manual-$(git rev-parse --short HEAD) 505953557276.dkr.ecr.eu-west-1.amazonaws.com/ludos:manual-$(git rev-parse --short HEAD) && docker push 505953557276.dkr.ecr.eu-west-1.amazonaws.com/ludos:manual-$(git rev-parse --short HEAD)"
}
}