Spring Boot + Docker Multistage = Smaller container size
Use can use prebuild version by using:
$ docker run -d -p 8080:8080 saboteurkid/smaller-spring:1.0
Wait for docker to pull and up. Then jump to step #6
# Disable the Gradle daemon for Continuous Integration servers as correctness | |
# is usually a priority over speed in CI environments. Using a fresh | |
# runtime for each build is more reliable since the runtime is completely | |
# isolated from any previous builds. | |
variables: | |
GRADLE_OPTS: "-Dorg.gradle.daemon=false" | |
DOCKER_TLS_CERTDIR: "" | |
before_script: | |
- export GRADLE_USER_HOME=`pwd`/.gradle |
Spring Boot + Docker Multistage = Smaller container size
Use can use prebuild version by using:
$ docker run -d -p 8080:8080 saboteurkid/smaller-spring:1.0
Wait for docker to pull and up. Then jump to step #6
Implementing business transactions that span multiple services is not straightforward. Distributed transactions are best avoided because of the CAP theorem. Moreover, many modern (NoSQL) databases don’t support them. The best solution is to use the Saga Pattern.
[...]
job "demo" { | |
datacenters = [ | |
"dc1"] | |
group "api" { | |
count = "1" | |
task "demo_api" { | |
driver = "docker" | |
config { | |
image = "saboteurkid/go-demo:latest-debug" | |
port_map { |
job "minio" { | |
datacenters = ["dc1"] | |
type = "service" | |
group "minio1" { | |
ephemeral_disk { | |
size = 10000 | |
sticky = true | |
migrate = false | |
} |
server { | |
listen 80; | |
server_name jenkins.your-domain.com; | |
location / { | |
proxy_set_header Host $host:$server_port; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare git@github.com:usi-systems/easytrace.git
When attempting to remove all of the data in the Nomad data directory, several directories and files are unable to be deleted. Many messages are logged to the console like:
rm: cannot remove ‘alloc/736f61b9-d7dc-cb73-0dd1-76b1b2ba032d/nomad-ui/secrets’: Device or resource busy
rm: cannot remove ‘alloc/ddcf5a78-5497-f4a4-a101-221fc4e0180b/fabio/alloc’: Device or resource busy
rm: cannot remove ‘alloc/ddcf5a78-5497-f4a4-a101-221fc4e0180b/fabio/secrets’: Device or resource busy
[SERVICE] | |
Flush 1 | |
Log_Level info | |
Parsers_File parsers.conf | |
[INPUT] | |
Name tail | |
# Log file will be placed at: /tmp/fluent-bit/logs/<app_name>/<file_name>.log | |
Path /tmp/fluent-bit/logs/*/*.log | |
Path_Key LogSource |