Migrating from vargrant to docker

Recently it became a Mac of M1 chips. I finally found docker preview 7 because all the virtual environments didn't work.

I was using preview 7 for another project, but I started working on another project and moved to docker because that project was vargrant. If you're dissatisfied, preview 7 is slow. It's several times slower than ever. Unit Test, which takes about 30 minutes, does not finish even if it takes 5 hours. I wonder if DB access is the bottleneck. It was the impression that.

Well, I will write about the part I was addicted to with Vargrant → docker.

I was lucky

It's actually more of a virtual environment than a vargrant setup. In the case of setting up a DB server, WEB server, and redis server with a child, there is a shell script for setting up, and apt-get will do it for you.

I thought it was Yahoo, and when I moved the shell as it was, there was a part that did not work under the docker environment. By the way, the OS is ubuntu 13? It was something like that, but by the way, it has moved to 18.

A Dockerfile is a simple one that just copies and runs the shell script.


Change time zone

To change the time zone

timedatectl set-timezone Asia/Tokyo

It was, but it seems that this command can not be used with docker, so

echo "Asia/Tokyo" > /etc/timezone
rm /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
dpkg-reconfigure -f noninteractive tzdata

I changed it.

libpcre3 and dev

A perl compatible regular expression engine. This guy, this guy, ubuntu18 doesn't have it. It's old and shouldn't be used. If you try to put it with apt-get,

libpcre3 is already the newest version (2:8.39-9).

 I got an error and could not install.
```libpcre2-32-0```, ```libpcre2-dev```, ```libpcre++-dev```I put in.

### that's all
 I've run out of libraries in the nginx build, but I'll omit that because it's neither a big deal nor interesting.

 But after all, docker is slow. Is it disk access?

#### **`#10 DONE 967.5s`**

Recommended Posts

Migrating from vargrant to docker
Notes on migrating from CircleCI 1.0 to 2.0
Update MySQL from 5.7 to 8.0 with Docker
Changes when migrating from Spring Boot 1.5 to Spring Boot 2.0
[Docker] Copy files from docker container to host
Changes when migrating from Spring Boot 2.0 to Spring Boot 2.2
Precautions when migrating from VB6.0 to JAVA
How to get a heapdump from a Docker container
Setting to exit from Docker container with VScode
Copy files from docker container to host (docker cp)
Migrating from Eclipse server function (Tomcat) to Embed Tomcat
Temporarily move Docker environment from Mac to AWS
Changes from Java 8 to Java 11
Sum from Java_1 to 100
Migrate from JUnit 4 to JUnit 5
How to install Docker
From Java to Ruby !!
How to deploy to Heroku from a local docker image
List how to learn from Docker to AKS on AWS
The story of migrating from Paperclip to Active Storage
Push Docker images from GitHub Actions to GitHub Container Registry
Docker for Windows: MySQL container does not start when migrating from Hyper-v to WSL2
Moved from iBATIS to MyBatis3
Let's write how to make API with SpringBoot + Docker from 0
Try Spring Boot from 0 to 100.
Migration from Cobol to JAVA
Switch from slim3-gen to slim3-gen-jsr269
Moving from AWS to PaizaCloud
[Note] Flow from docker installation to JupyterLab startup on ubuntu
New features from Java7 to Java8
The story of migrating a stray batch without an owner from EC2 to a Docker environment
Extract files from Docker Image
Connect from Java to PostgreSQL
How to set Docker nginx
How to write and notes when migrating from VB to JAVA
Convert from ○ months to ○ years ○ months
Rewriting from applet to application
ClassCastException occurs when migrating from Java7 to Java8 ~ Generics and overload ~
Using Docker from Java Gradle
[Opens aml] NoClassDefFoundError occurs when migrating from Tomcat to weblogic
Change from SQLite3 to PostgreSQL
[Docker context] ~ How to access docker in remote environment from VScode ~
From Ineffective Java to Effective Java
Notes on character encoding when migrating from windows to Mac
How to migrate from JUnit4 to JUnit5
[Docker] How to access the host from inside the container. http://host.docker.internal:
Connect to AWS RDS from your local PC Docker environment
End of Docker and Kubernetes: Grace period from SIGTERM to SIGKILL
Notes on building Kotlin development environment and migrating from Java to Kotlin
PostgreSQL environment construction with Docker (from setup to just before development)
Shortcut comparison for those migrating from Eclipse to IntelliJ IDEA (Windows)
What I thought about when I started migrating from Java to Kotlin
How to push from Tarminal to GitHub
protocol buffeer migration from 2.x to 3.x
[Note] Download from S3, upload to S3
Steps to run docker on Mac
Ubuntu Desktop upgrade from 18.0.4 (?) To 20.04.1 (focal)
To beginners launching Docker on AWS
Migrate Docker image to another server
How to run JavaFX on Docker
Articles referred to for incorporating Docker