Skip to content

Commit

Permalink
Remove references to old Docker repository
Browse files Browse the repository at this point in the history
  • Loading branch information
nekketsuuu committed Feb 29, 2024
1 parent e7dd215 commit 3d326f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
18 changes: 4 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
services:
web:
image: hogelog/dmemo
build: .
env_file: .env.docker
volumes:
- ./log/docker:/app/log
Expand Down
5 changes: 0 additions & 5 deletions lib/tasks/docker.rake

This file was deleted.

0 comments on commit 3d326f9

Please sign in to comment.