- Create
Dockerfile
for test
FROM ubuntu:16.04
RUN apt-get update && \
apt-get install -y openjdk-8-jdk && \
rm -rf /var/lib/apt/list/*
It is mostly (like a 100%) stolen from here
FROM ubuntu:16.04
RUN apt-get update -y
Docker for Windows needs a shared drive in order to use it as a root for shared volumes for containers. I don't feel like sharing my whole C: drive, or a creating a new partition on one of my existing disk solely for this purpose.
First I tried to fix this with subst
DOS command, it saved me once while I wanted to delete a really deep node_modules
directory, but I wanted a solution where I can move around this mounted drive on the host.
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted |
FROM ubuntu:14.04 | |
RUN apt-get update && apt-get install -y openssh-server | |
RUN mkdir /var/run/sshd | |
RUN echo 'root:password' | chpasswd | |
# xenial | |
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config | |
# trusty | |
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config |
# inventory | |
[app] | |
apphost1 | |
[app:vars] | |
app_schema=testappdb | |
app_user=testappuser | |
app_password=testapppassword |
Proper way to configure Apple App Site Association file
{
"applinks": {
"apps": [],
import ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; | |
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.annotation.DependsOn; | |
import org.springframework.context.annotation.Lazy; | |
import org.springframework.jdbc.datasource.DataSourceTransactionManager; |
Many Spring Boot Starters are dependent on spring-boot-starter-tomcat
, which causes deployments error on Wildfly. To
which dependencies causing errors run the following command and exclude spring-boot-starter-tomcat
module from them:
./gradlew dependencyInsight --dependency spring-boot-starter-tomcat --configuration compile