diff --git a/README.md b/README.md index 04ba306..28bdd90 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ ### build -#### `macmini:/Users/yuu/docker/task-bldg/Dockerfile` +#### `macmini:/home/hayashi/docker/task-bldg/Dockerfile` `Dockerfile` を用意する @@ -39,9 +39,25 @@ #### build command -- (1) 予め、 `Docker Desktop` を起動しておく +- (1) 予め、 `docker.service` を起動しておく -- (2) build して docker image を作成する `docker build -t task-bldg:latest ./` + ``` + $ sudo systemctl status docker.service + ● docker.service - Docker Application Container Engine + Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; preset: enabled) + Active: active (running) since Sat 2024-10-12 13:06:22 JST; 24min ago + TriggeredBy: ● docker.socket + Docs: https://docs.docker.com + Main PID: 8964 (dockerd) + Tasks: 11 + Memory: 669.4M (peak: 874.1M) + CPU: 21.972s + CGroup: /system.slice/docker.service + └─8964 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock + + ``` + +- (2) build して docker image を作成する `docker build -t task-bldg:0.2.1 ./` ``` $ cd ~/docker/task-bldg/ @@ -103,6 +119,31 @@ ### その他の設定 +- 停止した dockerコンテナを再度起動する + +``` +$ docker start -ai TASK-BLDG + + . ____ _ __ _ _ + /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ +( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ + \\/ ___)| |_)| | | | | || (_| | ) ) ) ) + ' |____| .__|_| |_|_| |_\__, | / / / / + =========|_|==============|___/=/_/_/_/ + :: Spring Boot :: (v2.7.18) + +2024-10-12 05:38:59.421 INFO 1 --- [ main] osm.surveyor.task.TaskBldgApplication : Starting TaskBldgApplication v0.2.1 using Java 21 on 671cb4d8737c with PID 1 (/usr/src/task-bldg.war started by root in /usr/src/data) +2024-10-12 05:38:59.428 INFO 1 --- [ main] osm.surveyor.task.TaskBldgApplication : No active profile set, falling back to 1 default profile: "default" +2024-10-12 05:39:01.332 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. +2024-10-12 05:39:01.461 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 104 ms. Found 3 JPA repository interfaces. +2024-10-12 05:39:02.722 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8083 (http) +2024-10-12 05:39:02.748 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] +2024-10-12 05:39:02.749 INFO 1 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.83] + : + : +``` + + その他の設定は下記を参照のこと - github: [yuuhayashi/task-bldg](https://github.com/yuuhayashi/task-bldg/blob/master/README.md)