Skip to content

Conversation

@tarekziade
Copy link
Contributor

@tarekziade tarekziade commented Mar 31, 2022

Adds a Dockerfile that installs and deploys the app using Ubuntu Focal

Also Fixes #64

@tarekziade tarekziade self-assigned this Mar 31, 2022
@tarekziade tarekziade requested a review from a team March 31, 2022 11:19
Copy link
Member

@artem-shelkovnikov artem-shelkovnikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, added a small question

build-docker:
docker build -t connectors .

run-docker:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it depend on build-docker? If so, should we also declare the dependency and build the image if it's not built?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes and no. if you run it without the image built, it'll fail. But it should run without re-buidling everytime. I can't think of a simple mechanism to trigger the build if it was not done when running

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point, I was also on the fence whether it should be a hard requirement. So if the docker image was never built, we still get a somewhat meaningful error message, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

% docker run --rm -it -p 127.0.0.1:9292:9292/tcp connectors
Unable to find image 'connectors:latest' locally
docker: Error response from daemon: pull access denied for connectors, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

@tarekziade tarekziade merged commit df0b3c7 into main Mar 31, 2022
@tarekziade tarekziade deleted the tarekziade/dockerfile branch March 31, 2022 14:35
Copy link
Member

@seanstory seanstory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm late to the party, but small comment.

docker build -t connectors .

run-docker:
docker run --rm -it -p 127.0.0.1:9292:9292/tcp connectors
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This hardcodes the port, which may not be in alignment with connectors.yml Is that something we need to worry about? Should we also be sure that the docker image can be run with env-vars which overwrite your yaml configs, like we do for our other docker images?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah you're right, we should not hardcore the port. For the env it sounds like a great improvement

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TZInfo::DataSourceNotFound - No source of timezone data could be found.

4 participants