Skip to content

Commit 9622626

Browse files
authored
Setup for kubernetes (#5)
* Initial setup for kubernetes * Fixes some configs --------- Co-authored-by: Giovanni Barbaro <[email protected]>
1 parent 5ae8899 commit 9622626

16 files changed

+132
-369
lines changed

.github/workflows/maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
java-version: '17'
3131
distribution: 'temurin'
3232
cache: maven
33-
- name: Env var checks
34-
run: echo version - $QUARKUS_APPLICATION_VERSION; echo pushing - $QUARKUS_CONTAINER_IMAGE_PUSH; echo username - $QUARKUS_CONTAINER_IMAGE_USERNAME;
3533
- name: Build and conditionally push container image with Maven
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636
run: ./mvnw -B package -Dquarkus.container-image.build=true

.mvn/wrapper/maven-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.7/apache-maven-3.8.7-bin.zip
1818
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar

infra/docker-compose-dev.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

infra/docker-compose.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
version: "3.9"
2+
services:
3+
db:
4+
image: postgres:15.1
5+
environment:
6+
- POSTGRES_USER=postgres
7+
- POSTGRES_PASSWORD=postgres
8+
- POSTGRES_DB=leaderboards
9+
volumes:
10+
- dbdata:/data
11+
ports:
12+
- "5432:5432"
13+
14+
# leaderboard:
15+
# image: lunatech-leaderboards:latest
16+
# depends_on:
17+
# - db
18+
# ports:
19+
# - "8080:8080"
20+
# volumes:
21+
# - appdata:/data
22+
# environment:
23+
# - POSTGRES_URL=postgresql://db
24+
# - POSTGRES_USER=postgres
25+
# - POSTGRES_PASSWORD=postgres
26+
# - KEYCLOAK_HOST=https://keycloak
27+
28+
# keycloak:
29+
# image: jboss/keycloak:16.1.1
30+
# container_name: keycloak
31+
# environment:
32+
# DB_VENDOR: H2
33+
# KEYCLOAK_USER: admin
34+
# KEYCLOAK_PASSWORD: admin
35+
# KEYCLOAK_IMPORT: "/opt/jboss/keycloak/realm-config/quarkus-realm.json"
36+
# volumes:
37+
# - ./keycloak:/opt/jboss/keycloak/realm-config
38+
# ports:
39+
# - "8081:8080"
40+
41+
volumes:
42+
dbdata:
43+
appdata:
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: "acid.zalan.do/v1"
2+
kind: postgresql
3+
metadata:
4+
name: lunatech-leaderboards-db
5+
spec:
6+
teamId: "lunatech"
7+
volume:
8+
size: 1Gi
9+
numberOfInstances: 1
10+
users:
11+
leaderboards:
12+
- superuser
13+
- createdb
14+
databases:
15+
leaderboards: leaderboards
16+
postgresql:
17+
version: "14"

0 commit comments

Comments
 (0)