Skip to content

Can't seem to get docker image working #196

Description

@TheYsconator

Hey there! I'm trying to set-up a local instance of Construct using Docker, but I've been unable to get it working, so far.

I'm using the following files to set-up a minimal-type installation, but the image exits immediately with code 0. No logs are written.

I expect to be missing some configuration or settings that I should pass, but so far I haven't been able to figure out which exactly. Can you take a look at the files below and let me know what I should add/change in order to set up Construct locally?

.env file:

STATE_DIRECTORY=/var/db/construct/

docker-compose.yml

version: '3.3'

services:
  construct:
    image: jevolk/construct:ubuntu-22.04-full-built-clang-14-amd64-avx
    env_file: .env
    volumes:
      - ./construct_data/:/var/db/construct/

Activity

  1. yangm97 commented on Oct 17, 2023

    @yangm97
    Member

    The reason it exits with code 0 immediately, if I remember correctly, is because the Dockerfile doesn't include an ENTRYPOINT and/or CMD instruction.

    Also it doesn't come with automated bootstrap so you'll need to follow the wiki on setting up construct with a temporary container having the same data volume mounted.

    Finally, you'll need to update the compose file with an appropriate command instruction to get it to boot up automatically.

  2. TheYsconator commented on Oct 18, 2023

    @TheYsconator
    Author

    Thanks for your reply!

    That does sound quite convoluted, but I'm sure it's enough information to get me started. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions