Modified test classes
added gitignore for testng generated test-output folder
This commit is contained in:
parent
fb8e97c81d
commit
11a0b0277a
4 changed files with 3 additions and 36 deletions
|
@ -26,7 +26,7 @@ WORKDIR /URLShortener
|
|||
# Example real world db access url : mysql://127.0.0.1:3306
|
||||
# Example Docker db access url : mysql://database:3306 (container name is datbase)
|
||||
# Change the database ip in app config to the database docker container name/service
|
||||
RUN sed -i "s|database.ip=127.0.0.1|database.ip=db |g" src/main/resources/application.properties
|
||||
RUN sed -i "s|database.ip=127.0.0.1|database.ip=database |g" src/main/resources/application.properties
|
||||
|
||||
# Build the application
|
||||
RUN mvn clean install
|
||||
|
|
|
@ -4,7 +4,7 @@ volumes:
|
|||
data:
|
||||
|
||||
services:
|
||||
db:
|
||||
database:
|
||||
image: mariadb
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: 1234qwer
|
||||
|
@ -39,5 +39,5 @@ services:
|
|||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
- db
|
||||
- database
|
||||
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: shortener-deployment
|
||||
labels:
|
||||
app: shortener
|
||||
spec:
|
||||
replicas: 3 # Adjust as needed
|
||||
selector:
|
||||
matchLabels:
|
||||
app: shortener
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: shortener
|
||||
spec:
|
||||
containers:
|
||||
- name: shortener
|
||||
image: nmpl/shortener:latest
|
||||
ports:
|
||||
- containerPort: 8080
|
|
@ -1,12 +0,0 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: shortener-service
|
||||
spec:
|
||||
selector:
|
||||
app: shortener
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
type: LoadBalancer
|
Loading…
Reference in a new issue