Skip to content

Commit

Permalink
mudando variáveis de ambiente
Browse files Browse the repository at this point in the history
  • Loading branch information
giovaniflp committed Jun 28, 2024
1 parent 18bebe1 commit 91695e6
Show file tree
Hide file tree
Showing 57 changed files with 232 additions and 102 deletions.
3 changes: 3 additions & 0 deletions .azure/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.env
connections.resources.xml
deployment.targets.xml
3 changes: 3 additions & 0 deletions .azure/profiles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<profiles version="1" defaultProfile="default">
<profile name="default" />
</profiles>
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM openjdk:17-jdk-alpine AS base

WORKDIR /app

COPY target/*.jar app.jar

EXPOSE 8080

ENTRYPOINT ["java", "-jar", "app.jar"]
17 changes: 7 additions & 10 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
services:
mongodb:
image: 'mongo:latest'
container_name: 'mongodb'
environment:
MONGO_INITDB_DATABASE: mercadoBmxBr
MONGO_INITDB_ROOT_PASSWORD: Oxiprana169
MONGO_INITDB_ROOT_USERNAME: giovaniflp
spring-boot:
build:
context: .
dockerfile: Dockerfile
image: openjdk:17-jdk-alpine
container_name: spring-boot
ports:
- '27018:27017'
volumes:
- "./database-data:/data/db"
- "8080:8080"
8 changes: 0 additions & 8 deletions database-data/.mongodb/mongosh/6621e09c2be10e903d1120dc_log

This file was deleted.

14 changes: 0 additions & 14 deletions database-data/.mongodb/mongosh/6621e09d1772278133a1e608_log

This file was deleted.

21 changes: 21 additions & 0 deletions database-data/.mongodb/mongosh/666bd68b3d27e1d7f645ec2f_log
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{"t":{"$date":"2024-06-14T05:35:07.804Z"},"s":"I","c":"MONGOSH","id":1000000000,"ctx":"log","msg":"Starting log","attr":{"execPath":"/usr/bin/mongosh","envInfo":{"EDITOR":null,"NODE_OPTIONS":null,"TERM":"xterm"},"version":"2.1.5","distributionKind":"compiled","buildArch":"x64","buildPlatform":"linux","buildTarget":"linux-x64","buildTime":"2024-02-19T10:51:21.636Z","gitVersion":"cbfb77a23e88fc09b9334a6680667760b18dec94","nodeVersion":"v20.11.1","opensslVersion":"3.0.13+quic","sharedOpenssl":false,"runtimeArch":"x64","runtimePlatform":"linux","deps":{"nodeDriverVersion":"6.3.0","libmongocryptVersion":"1.9.0-20230828+git8e7f69f1c0","libmongocryptNodeBindingsVersion":"6.0.0","kerberosVersion":"2.1.0"}}}
{"t":{"$date":"2024-06-14T05:35:07.859Z"},"s":"I","c":"MONGOSH","id":1000000005,"ctx":"config","msg":"User updated"}
{"t":{"$date":"2024-06-14T05:35:07.860Z"},"s":"I","c":"MONGOSH","id":1000000048,"ctx":"config","msg":"Loading global configuration file","attr":{"filename":"/etc/mongosh.conf","found":false}}
{"t":{"$date":"2024-06-14T05:35:07.881Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000042,"ctx":"mongosh-connect","msg":"Initiating connection attempt","attr":{"uri":"mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.1.5","driver":{"name":"nodejs|mongosh","version":"6.3.0|2.1.5"},"devtoolsConnectVersion":"2.4.3","host":"127.0.0.1:27017"}}
{"t":{"$date":"2024-06-14T05:35:07.888Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000035,"ctx":"mongosh-connect","msg":"Server heartbeat succeeded","attr":{"connectionId":"127.0.0.1:27017"}}
{"t":{"$date":"2024-06-14T05:35:07.898Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000037,"ctx":"mongosh-connect","msg":"Connection attempt finished"}
{"t":{"$date":"2024-06-14T05:35:07.911Z"},"s":"I","c":"MONGOSH","id":1000000004,"ctx":"connect","msg":"Connecting to server","attr":{"session_id":"666bd68b3d27e1d7f645ec2f","userId":null,"telemetryAnonymousId":"6621e09c2be10e903d1120db","connectionUri":"mongodb://<ip address>:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.1.5","is_atlas":false,"is_localhost":true,"is_do":false,"server_version":"7.0.6","node_version":"v20.11.1","mongosh_version":"2.1.5","server_os":"linux","server_arch":"x86_64","is_enterprise":false,"auth_type":null,"is_data_federation":false,"is_stream":false,"dl_version":null,"atlas_version":null,"is_genuine":true,"non_genuine_server_name":"mongodb","is_local_atlas":false,"fcv":"7.0","api_version":null,"api_strict":null,"api_deprecation_errors":null}}
{"t":{"$date":"2024-06-14T05:35:07.915Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"adminCommand","class":"Database","db":"test","arguments":{"cmd":{"ping":1}}}}
{"t":{"$date":"2024-06-14T05:35:07.917Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"test","arguments":{"db":"admin"}}}
{"t":{"$date":"2024-06-14T05:35:07.986Z"},"s":"I","c":"MONGOSH","id":1000000010,"ctx":"shell-api","msg":"Initialized context","attr":{"method":"setCtx","arguments":{}}}
{"t":{"$date":"2024-06-14T05:35:07.988Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"adminCommand","class":"Database","db":"test","arguments":{"cmd":{"getLog":"startupWarnings"}}}}
{"t":{"$date":"2024-06-14T05:35:07.988Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"test","arguments":{"db":"admin"}}}
{"t":{"$date":"2024-06-14T05:35:07.989Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"hello","class":"Database","db":"test","arguments":{}}}
{"t":{"$date":"2024-06-14T05:35:07.991Z"},"s":"I","c":"MONGOSH-SNIPPETS","id":1000000024,"ctx":"snippets","msg":"Fetching snippet index","attr":{"refreshMode":"allow-cached"}}
{"t":{"$date":"2024-06-14T05:35:07.992Z"},"s":"I","c":"MONGOSH-SNIPPETS","id":1000000019,"ctx":"snippets","msg":"Loaded snippets","attr":{"installdir":"/data/db/.mongodb/mongosh/snippets"}}
{"t":{"$date":"2024-06-14T05:35:08.040Z"},"s":"I","c":"MONGOSH","id":1000000002,"ctx":"repl","msg":"Started REPL","attr":{"version":"2.1.5"}}
{"t":{"$date":"2024-06-14T05:35:09.054Z"},"s":"I","c":"MONGOSH-SNIPPETS","id":1000000027,"ctx":"snippets","msg":"Fetching snippet index done"}
{"t":{"$date":"2024-06-14T05:35:10.498Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"ls"}}
{"t":{"$date":"2024-06-14T05:35:10.551Z"},"s":"I","c":"MONGOSH-SNIPPETS","id":1000000032,"ctx":"snippets","msg":"Rewrote error message","attr":{"error":"ls is not defined","addition":"Are you trying to run a script written for the legacy shell? Try running `snippet install mongocompat`","name":"@mongosh/snippet-mongocompat"}}
{"t":{"$date":"2024-06-14T05:35:10.557Z"},"s":"E","c":"MONGOSH","id":1000000006,"ctx":"repl","msg":"ReferenceError: ls is not defined (Are you trying to run a script written for the legacy shell? Try running `snippet install mongocompat`)","attr":{"message":"ls is not defined (Are you trying to run a script written for the legacy shell? Try running `snippet install mongocompat`)","name":"ReferenceError","stack":"ReferenceError: ls is not defined (Are you trying to run a script written for the legacy shell? Try running `snippet install mongocompat`)\n at REPL1:227:38\n at REPL1:241:5\n at REPL1:245:3\n at ContextifyScript.runInContext (node:vm:133:12)\n at PrettyREPLServer.defaultEval (node:repl:601:22)\n at bound (node:domain:432:15)\n at PrettyREPLServer.runBound (node:domain:443:12)\n at /tmp/m/boxednode/mongosh/node-v20.11.1/out/Release/node:10:80221\n at /tmp/m/boxednode/mongosh/node-v20.11.1/out/Release/node:10:79944\n at node:internal/util:442:7","cause":null}}
{"t":{"$date":"2024-06-14T05:35:39.203Z"},"s":"I","c":"MONGOSH","id":1000000009,"ctx":"shell-api","msg":"Used \"show\" command","attr":{"method":"show dbs"}}
Loading

0 comments on commit 91695e6

Please sign in to comment.