-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into snyk-upgrade-ab1ef2ce79d0e5e96bf82268198c…
…f08a
- Loading branch information
Showing
67 changed files
with
5,452 additions
and
7,788 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
|
||
services: | ||
|
||
crapi-identity: | ||
|
@@ -39,18 +38,25 @@ services: | |
- [email protected] | ||
- SMTP_AUTH=true | ||
- SMTP_STARTTLS=true | ||
- JWT_EXPIRATION=604800000 | ||
- ENABLE_LOG4J=${ENABLE_LOG4J:-false} | ||
- API_GATEWAY_URL=https://api.crapi.io | ||
- API_GATEWAY_URL=https://api.mypremiumdealership.com | ||
- TLS_ENABLED=${TLS_ENABLED:-false} | ||
- TLS_KEYSTORE_TYPE=PKCS12 | ||
- TLS_KEYSTORE=classpath:certs/server.p12 | ||
- TLS_KEYSTORE_PASSWORD=passw0rd | ||
- TLS_KEY_PASSWORD=passw0rd | ||
- TLS_KEY_ALIAS=identity | ||
depends_on: | ||
postgresdb: | ||
condition: service_healthy | ||
mongodb: | ||
condition: service_healthy | ||
healthcheck: | ||
test: curl 0.0.0.0:${IDENTITY_SERVER_PORT:-8080}/identity/health_check | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
test: /app/health.sh | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
deploy: | ||
resources: | ||
limits: | ||
|
@@ -75,6 +81,9 @@ services: | |
- MONGO_DB_USER=admin | ||
- MONGO_DB_PASSWORD=crapisecretpassword | ||
- MONGO_DB_NAME=crapi | ||
- TLS_ENABLED=${TLS_ENABLED:-false} | ||
- TLS_CERTIFICATE=certs/server.crt | ||
- TLS_KEY=certs/server.key | ||
depends_on: | ||
postgresdb: | ||
condition: service_healthy | ||
|
@@ -83,10 +92,10 @@ services: | |
crapi-identity: | ||
condition: service_healthy | ||
healthcheck: | ||
test: curl 0.0.0.0:${COMMUNITY_SERVER_PORT:-8087}/community/home | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
test: /app/health.sh | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
deploy: | ||
resources: | ||
limits: | ||
|
@@ -112,7 +121,10 @@ services: | |
- MONGO_DB_PASSWORD=crapisecretpassword | ||
- MONGO_DB_NAME=crapi | ||
- SECRET_KEY=crapi | ||
- API_GATEWAY_URL=https://api.crapi.io | ||
- API_GATEWAY_URL=https://api.mypremiumdealership.com | ||
- TLS_ENABLED=${TLS_ENABLED:-false} | ||
- TLS_CERTIFICATE=certs/server.crt | ||
- TLS_KEY=certs/server.key | ||
depends_on: | ||
postgresdb: | ||
condition: service_healthy | ||
|
@@ -123,10 +135,10 @@ services: | |
crapi-community: | ||
condition: service_healthy | ||
healthcheck: | ||
test: curl 0.0.0.0:${WORKSHOP_SERVER_PORT:-8000}/workshop/health_check/ | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
test: /app/health.sh | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
deploy: | ||
resources: | ||
limits: | ||
|
@@ -138,10 +150,12 @@ services: | |
image: crapi/crapi-web:${VERSION:-latest} | ||
ports: | ||
- "${LISTEN_IP:-127.0.0.1}:8888:80" | ||
- "${LISTEN_IP:-127.0.0.1}:8443:443" | ||
environment: | ||
- COMMUNITY_SERVICE=crapi-community:${COMMUNITY_SERVER_PORT:-8087} | ||
- IDENTITY_SERVICE=crapi-identity:${IDENTITY_SERVER_PORT:-8080} | ||
- WORKSHOP_SERVICE=crapi-workshop:${WORKSHOP_SERVER_PORT:-8000} | ||
- TLS_ENABLED=${TLS_ENABLED:-false} | ||
depends_on: | ||
crapi-community: | ||
condition: service_healthy | ||
|
@@ -150,10 +164,10 @@ services: | |
crapi-workshop: | ||
condition: service_healthy | ||
healthcheck: | ||
test: curl 0.0.0.0:80/web/health | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
test: curl 0.0.0.0:80/web/health | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
deploy: | ||
resources: | ||
limits: | ||
|
@@ -170,10 +184,10 @@ services: | |
#ports: | ||
# - "${LISTEN_IP:-127.0.0.1}:5432:5432" | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready"] | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
test: [ "CMD-SHELL", "pg_isready" ] | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
volumes: | ||
- postgresql-data:/var/lib/postgresql/data/ | ||
deploy: | ||
|
@@ -191,11 +205,11 @@ services: | |
#ports: | ||
# - "${LISTEN_IP:-127.0.0.1}:27017:27017" | ||
healthcheck: | ||
test: echo 'db.runCommand("ping").ok' | mongo mongodb:27017/test --quiet | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
start_period: 20s | ||
test: echo 'db.runCommand("ping").ok' | mongo mongodb:27017/test --quiet | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
start_period: 20s | ||
volumes: | ||
- mongodb-data:/data/db | ||
deploy: | ||
|
@@ -212,29 +226,30 @@ services: | |
MH_MONGO_URI: admin:crapisecretpassword@mongodb:27017 | ||
MH_STORAGE: mongodb | ||
ports: | ||
# - "127.0.0.1:1025:1025" # smtp server | ||
# - "127.0.0.1:1025:1025" # smtp server | ||
- "${LISTEN_IP:-127.0.0.1}:8025:8025" # Mail ui | ||
healthcheck: | ||
test: ["CMD", "nc", "-z", "localhost", "8025"] | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
test: [ "CMD", "nc", "-z", "localhost", "8025" ] | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: '0.3' | ||
memory: 128M | ||
|
||
api.crapi.io: | ||
container_name: api.crapi.io | ||
api.mypremiumdealership.com: | ||
container_name: api.mypremiumdealership.com | ||
image: crapi/gateway-service:${VERSION:-latest} | ||
#ports: | ||
# - "${LISTEN_IP:-127.0.0.1}:8443:443" # https | ||
healthcheck: | ||
test: curl -vk 0.0.0.0:443 | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
test: echo -n "GET / HTTP/1.1\n\n" > /dev/tcp/api.mypremiumdealership.com/443 | ||
interval: 15s | ||
timeout: 15s | ||
retries: 15 | ||
start_period: 15s | ||
deploy: | ||
resources: | ||
limits: | ||
|
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,8 @@ | ||
docker load -i mailhog.tar | ||
docker load -i gateway-service.tar | ||
docker load -i crapi-identity.tar | ||
docker load -i crapi-community.tar | ||
docker load -i crapi-workshop.tar | ||
docker load -i crapi-web.tar | ||
docker load -i postgres.tar | ||
docker load -i mongo.tar |
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,8 @@ | ||
docker save crapi/mailhog:develop -o mailhog.tar | ||
docker save crapi/gateway-service:develop -o gateway-service.tar | ||
docker save crapi/crapi-identity:develop -o crapi-identity.tar | ||
docker save crapi/crapi-community:develop -o crapi-community.tar | ||
docker save crapi/crapi-workshop:develop -o crapi-workshop.tar | ||
docker save crapi/crapi-web:develop -o crapi-web.tar | ||
docker save postgres:14 -o postgres.tar | ||
docker save mongo:4.4 -o mongo.tar |
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
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,32 @@ | ||
# Default values for crapi. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
replicaCount: 1 | ||
imagePullPolicy: Always | ||
apiGatewayServiceUrl: https://api.mypremiumdealership.com | ||
apiGatewayServiceInstall: false | ||
enableLog4j: true | ||
enableShellInjection: true | ||
tlsEnabled: true | ||
|
||
web: | ||
image: crapi/crapi-web | ||
port: 80 | ||
sslPort: 443 | ||
identity: | ||
image: crapi/crapi-identity | ||
port: 8080 | ||
community: | ||
image: crapi/crapi-community | ||
port: 8087 | ||
workshop: | ||
image: crapi/crapi-workshop | ||
port: 8000 | ||
mailhog: | ||
image: crapi/mailhog | ||
mongodb: | ||
image: mongo | ||
version: 5.0 | ||
postgresdb: | ||
image: postgres | ||
version: 14 |
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 |
---|---|---|
|
@@ -6,9 +6,10 @@ jwtSecret: crapi | |
enableLog4j: false | ||
enableShellInjection: true | ||
imagePullPolicy: Always | ||
apiGatewayServiceUrl: https://api.crapi.io | ||
apiGatewayServiceUrl: https://api.mypremiumdealership.com | ||
apiGatewayServiceInstall: true | ||
apiGatewayPassword: | ||
apiGatewayPassword: | ||
tlsEnabled: false | ||
|
||
waitForK8sResources: | ||
image: groundnuty/k8s-wait-for:v1.3 | ||
|
@@ -19,11 +20,13 @@ web: | |
image: crapi/crapi-web | ||
replicaCount: 1 | ||
port: 80 | ||
sslPort: 443 | ||
service: | ||
name: crapi-web | ||
labels: | ||
app: crapi-web | ||
nodePort: 30080 | ||
sslNodePort: 30443 | ||
config: | ||
name: crapi-web-configmap | ||
labels: | ||
|
@@ -70,6 +73,12 @@ identity: | |
smtpFrom: "[email protected]" | ||
smtpAuth: true | ||
smtpStartTLS: true | ||
jwtExpiration: 604800000 | ||
keyStoreType: PKCS12 | ||
keyStore: classpath:certs/server.p12 | ||
keyStorePassword: passw0rd | ||
keyPassword: passw0rd | ||
keyAlias: identity | ||
resources: | ||
limits: | ||
cpu: "500m" | ||
|
@@ -278,4 +287,4 @@ apiGatewayService: | |
deploymentSelectorMatchLabels: | ||
app: gateway-service | ||
serviceSelectorLabels: | ||
app: gateway-service | ||
app: gateway-service |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ metadata: | |
data: | ||
DB_HOST: postgresdb | ||
DB_DRIVER: postgresql | ||
JWT_SECRET: crapi #Used for creating a JWT. Can be anything | ||
JWT_SECRET: crapi #Used for creating a JWT. Can be anything | ||
DB_USER: admin | ||
DB_PASSWORD: crapisecretpassword | ||
DB_NAME: crapi | ||
|
@@ -24,5 +24,6 @@ data: | |
SMTP_PASS: "xxxxxxxxxxxxxx" | ||
SMTP_FROM: "[email protected]" | ||
SMTP_AUTH: "true" | ||
JWT_EXPIRATION: "604800000" | ||
SMTP_STARTTLS: "true" | ||
SERVER_PORT: "8080" |
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 |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
} | ||
], | ||
"request": { | ||
"method": "GET", | ||
"method": "POST", | ||
"header": [ | ||
{ | ||
"key": "User-Agent", | ||
|
Oops, something went wrong.