From 3d326f97ee40e5bde86a01d677b9d1699e1f948c Mon Sep 17 00:00:00 2001 From: Takuma Ishikawa Date: Thu, 29 Feb 2024 09:41:19 +0900 Subject: [PATCH] Remove references to old Docker repository --- README.md | 18 ++++-------------- docker-compose.yml | 2 +- lib/tasks/docker.rake | 5 ----- 3 files changed, 5 insertions(+), 20 deletions(-) delete mode 100644 lib/tasks/docker.rake diff --git a/README.md b/README.md index 5cff5cc2..21f82a14 100644 --- a/README.md +++ b/README.md @@ -20,16 +20,14 @@ $ bundle exec foreman start ### Docker -Docker images are published on Docker Hub. -https://hub.docker.com/r/hogelog/dmemo/ - ``` +$ docker build . -t dmemo $ cp .env.production.sample .env.docker $ # Set all environment variables. $ # You can generate secret_key_base by the following command: -$ # `docker run --rm --env-file .env.docker -t hogelog/dmemo ./bin/rake secret` +$ # `docker run --rm --env-file .env.docker -t dmemo ./bin/rake secret` $ vi .env.docker -$ docker run --rm --env-file .env.docker -t hogelog/dmemo ./bin/docker_db_apply.sh +$ docker run --rm --env-file .env.docker -t dmemo ./bin/docker_db_apply.sh $ docker-compose up ``` @@ -38,21 +36,13 @@ $ docker-compose up ./bin/rails r 'SynchronizeDataSources.run' ``` -or - -``` -docker run --rm --env-file .env.docker -t hogelog/dmemo ./bin/rails r 'SynchronizeDataSources.run' -``` - ## Configure ### Create Admin User - Login dmemo by google account - Activate user as admin ``` -$ ./bin/rake admin:activate EMAIL=konbu.komuro@gmail.com - or -$ docker run --env-file .env.docker hogelog/dmemo ./bin/docker_admin_activate.sh konbu.komuro@gmail.com +$ ./bin/rake admin:activate EMAIL=foobar@example.com ``` ### Environment Variables diff --git a/docker-compose.yml b/docker-compose.yml index 8d94aa6f..ade1d179 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '2' services: web: - image: hogelog/dmemo + build: . env_file: .env.docker volumes: - ./log/docker:/app/log diff --git a/lib/tasks/docker.rake b/lib/tasks/docker.rake deleted file mode 100644 index 6f4bb4a1..00000000 --- a/lib/tasks/docker.rake +++ /dev/null @@ -1,5 +0,0 @@ -namespace :docker do - task :build do - sh(*%W(docker build -t hogelog/dmemo:latest .)) - end -end