TracksApp/tracks

Dockerfile / docker-compose and docker-hub not working

Closed this issue · 5 comments

Dockerfile (and probably docker-compose.yml) probably needs updating because docker-compose (from thsi repo) isnt working. Gets stuck at "irb" and the container just terminates

root@docker:/home/tracks# docker-compose ps
       Name                     Command             State           Ports       
--------------------------------------------------------------------------------
tracks_tracks_db_1    docker-entrypoint.sh mysqld   Up       3306/tcp, 33060/tcp
tracks_tracks_web_1   irb                           Exit 0

The logs also reveal nothing

root@docker:/home/tracks# docker-compose logs
Attaching to tracks_web_1, tracks_db_1
web_1  | Switch to inspect mode.
web_1  | 

Tried the Docker hub project and similar issue

root@docker:/home/tracks# docker run -p 3000:3000 tracksapp/tracks:master 
Switch to inspect mode.
root@docker:/home/tracks# docker ps -a
CONTAINER ID        IMAGE                                    COMMAND                  CREATED              STATUS                          PORTS                    NAMES
16974ff7db48        tracksapp/tracks:master                  "irb"                    13 seconds ago       Exited (0) 13 seconds ago                                epic_elbakyan
6f8ee7bbff0a        tracksapp/tracks:master                  "irb"                    About a minute ago   Exited (0) About a minute ago                            inspiring_wright

Any assistance would be really appreciated. I am new to Ruby but I have been using this app for quiet sometime now, thanks to the turnkeylinux ISO. This time I wanted to run it inside docker container and all attempts have failed.

Please do help.

Here is the debug information for anyone willing to help

Debug information

root@docker:/home/tracks# docker --version && docker-compose --version
Docker version 19.03.5, build 633a0ea838
docker-compose version 1.24.1, build 4667896b
root@docker:/home/tracks# docker info && docker version
Client:
 Debug Mode: false

Server:
 Containers: 16
  Running: 2
  Paused: 0
  Stopped: 14
 Images: 66
 Server Version: 19.03.5
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339
 runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
 init version: fec3683
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 4.19.0-6-amd64
 Operating System: Debian GNU/Linux 10 (buster)
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 3.76GiB
 Name: docker.pk
 ID: IJMF:E4NQ:PU3A:EO5N:DKM7:IZVS:S5SY:7CRC:EHSO:BSJW:BNDQ:47FY
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No swap limit support
Client: Docker Engine - Community
 Version:           19.03.5
 API version:       1.40
 Go version:        go1.12.12
 Git commit:        633a0ea838
 Built:             Wed Nov 13 07:25:38 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.5
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.12
  Git commit:       633a0ea838
  Built:            Wed Nov 13 07:24:09 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.10
  GitCommit:        b34a5c8af56e510852c35414db4c1f4fa6172339
 runc:
  Version:          1.0.0-rc8+dev
  GitCommit:        3e425f80a8c931f88e6d94a8c831b9d5aa481657
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

The current docker setup isn't meant for production usage. Are you attempting to use this in production?

@mattr- my intention is to run it on my local network for personal use. Having it as a docker-compose will make it portable and easy to use

Trust me, been playing with it since last 20 hours now. Here is my work in progress https://github.com/asimzeeshan/docker-tracks

any help is greatly appreciated

🤔 This sounds like running in production to me. Using Docker to run it in production (even for personal use) isn't supported. I'm afraid you're on your own here.

Ouch, could really use some help here

ZeiP commented

There are now better installation instructions for the master branch in https://github.com/TracksApp/tracks/blob/master/doc/installation.md. I'm planning on releasing a new version after getting at least the library updates in, but it'd be awesome to have some feedback before the release.

I shifted the logic so that now you don't need to add the .skip-docker file (although it doesn't certainly harm any), but if you want to run commands and have them being run inside the Docker Compose installation you need to create a .use-docker file similarly.

There are updated instructions for using the Docker machines in the doc directory: https://github.com/TracksApp/tracks/blob/master/doc/installation.md Let me know if you encounter any problems with them by posting a new issue. Thanks!