* build(deps): bump org.springframework.boot:spring-boot-starter-parent Bumps [org.springframework.boot:spring-boot-starter-parent](https://github.com/spring-projects/spring-boot) from 3.5.4 to 3.5.5. - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](https://github.com/spring-projects/spring-boot/compare/v3.5.4...v3.5.5) --- updated-dependencies: - dependency-name: org.springframework.boot:spring-boot-starter-parent dependency-version: 3.5.5 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * build(deps): bump io.jsonwebtoken:jjwt-jackson in /server Bumps io.jsonwebtoken:jjwt-jackson from 0.12.7 to 0.13.0. --- updated-dependencies: - dependency-name: io.jsonwebtoken:jjwt-jackson dependency-version: 0.13.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * build(deps): bump io.jsonwebtoken:jjwt-impl in /server Bumps [io.jsonwebtoken:jjwt-impl](https://github.com/jwtk/jjwt) from 0.12.7 to 0.13.0. - [Release notes](https://github.com/jwtk/jjwt/releases) - [Changelog](https://github.com/jwtk/jjwt/blob/master/CHANGELOG.md) - [Commits](https://github.com/jwtk/jjwt/compare/0.12.7...0.13.0) --- updated-dependencies: - dependency-name: io.jsonwebtoken:jjwt-impl dependency-version: 0.13.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * build(deps): bump io.jsonwebtoken:jjwt-api in /server Bumps [io.jsonwebtoken:jjwt-api](https://github.com/jwtk/jjwt) from 0.12.7 to 0.13.0. - [Release notes](https://github.com/jwtk/jjwt/releases) - [Changelog](https://github.com/jwtk/jjwt/blob/master/CHANGELOG.md) - [Commits](https://github.com/jwtk/jjwt/compare/0.12.7...0.13.0) --- updated-dependencies: - dependency-name: io.jsonwebtoken:jjwt-api dependency-version: 0.13.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * feat: add Taskfile * feat: add files, tasks and more automations * feat: disable email sending if not configured * chore: rename client to tasknote-web * feat: add devtools for faster development * feat: Re-tag Docker image with 'latest' tag * feat: update wording and improve taskfile * Implement ApplicationRunner for startup logging * fix: add reachability json file * feat: drop old config for JJWT * Revert "feat: drop old config for JJWT" This reverts commit ed29cf4684454b0d5e3f1a284b479e2bb6872ad7. * chore: JJWT finally working now * test: fix test cases * ci: fix permissions * test: add more test cases --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
34 lines
882 B
Bash
34 lines
882 B
Bash
#!/bin/bash
|
|
|
|
if [ ! -f "server/.env" ]; then
|
|
echo "No env file found for back-end. Creating one for you.."
|
|
bash tools/run-create-env.sh "back"
|
|
else
|
|
echo "Env file in place. Moving on.."
|
|
fi
|
|
|
|
echo "Getting env vars and making them visible"
|
|
cd server/
|
|
export $(cat .env | xargs)
|
|
echo "Done!"
|
|
|
|
cd ..
|
|
|
|
docker build --file server/Dockerfile.dev --tag tasknote-api:nightly .
|
|
|
|
DB_HOST=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' db)
|
|
|
|
docker run -d --rm \
|
|
--name tasknote-api \
|
|
-p 8585:8585 \
|
|
-p 5005:5005 \
|
|
-e POSTGRES_DB=$POSTGRES_DB \
|
|
-e POSTGRES_USER=$POSTGRES_USER \
|
|
-e POSTGRES_PASSWORD=$POSTGRES_PASSWORD \
|
|
-e POSTGRES_PORT=$POSTGRES_PORT \
|
|
-e POSTGRES_HOST=$DB_HOST \
|
|
-e CORS_ALLOWED_ORIGINS=$CORS_ALLOWED_ORIGINS \
|
|
-e SERVER_SERVLET_CONTEXT_PATH=$SERVER_SERVLET_CONTEXT_PATH \
|
|
-v ./server:/app \
|
|
tasknote-api:nightly
|