Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Docker and Gitpod support #103

Merged
merged 29 commits into from
Jul 15, 2021

Conversation

MatteoGheza
Copy link
Collaborator

@MatteoGheza MatteoGheza commented Jul 8, 2021

@hrueger #87 (comment) if you want to try this, I suggest you to go to https://gitpod.io/#https://github.com/josephdadams/TallyArbiter/pull/103 and login with Github

@hrueger
Copy link
Collaborator

hrueger commented Jul 8, 2021

Looks good to me 👍
Maybe you can add a GitHub Action Workflow which runs on pushes and builds the image and if it is a tag, publishes the image to Docker Hub?

@MatteoGheza
Copy link
Collaborator Author

MatteoGheza commented Jul 8, 2021

Sorry, I didn't read the comment (I was trying to setup a simple e2e testing system using cypress.io, and I had some problems with a library used for intercepting WebSockets, so I had to fork it).
Tomorrow I'll try.
Thanks for the feedback.

@josephdadams
Copy link
Owner

Also add docker and gitpod instructions somewhere in the readme, docusaurus, etc. so people can know about it :)

@MatteoGheza
Copy link
Collaborator Author

MatteoGheza commented Jul 9, 2021

GitHub Action Workflow it's working.
https://hub.docker.com/r/matteogheza/tallyarbitertestimage/tags?page=1&ordering=last_updated
https://github.com/MatteoGheza/TallyArbiter/runs/3027417377?check_suite_focus=true

TODO before merging:

  • Replace matteogheza/tallyarbitertestimage (line 41 in .github/workflows/build.yml)
  • Add DOCKERHUB_USERNAME and DOCKERHUB_TOKEN in repository actions secrets
  • Docker and Gitpod instructions somewhere in the documentation
  • Build multi-arch Docker image (only during release)
  • Fix GitHub Actions Workflow (Yaml syntax error, @hrueger help wanted 😅)

@MatteoGheza
Copy link
Collaborator Author

MatteoGheza commented Jul 9, 2021

I started adding references to Docker and Gitpod, but I'm not good at writing documentation 😂

@hrueger
Copy link
Collaborator

hrueger commented Jul 9, 2021

@MatteoGheza

Fix GitHub Actions Workflow (Yaml syntax error, @hrueger help wanted 😅)

If I remove all if: !(startsWith(github.ref, 'refs/tags/v')), the yaml becomes valid. Maybe we need to escape the ! somehow? I'm not that familiar with yaml.

@hrueger
Copy link
Collaborator

hrueger commented Jul 9, 2021

According to https://github.community/t/expression-syntax-for-not-startswith/17040/4 we need to put the expression in double quotes or as stated in https://github.community/t/expression-syntax-for-not-startswith/17040/3 the following should work, too:

if: startsWith(github.ref, 'refs/tags/v') != true

I'd personally prefer double quotes.

@MatteoGheza
Copy link
Collaborator Author

MatteoGheza commented Jul 9, 2021

Now it's working!

replaces the test image with the official path
@josephdadams
Copy link
Owner

I added the repo secrets, modified the yml for the correct docker path, and updated the documentation to include that path as well.

@josephdadams
Copy link
Owner

@MatteoGheza ready to merge?

@MatteoGheza
Copy link
Collaborator Author

I found a small TODO in documentation.
Sorry for the late reply.

@MatteoGheza
Copy link
Collaborator Author

MatteoGheza commented Jul 14, 2021

Any updates? Has anyone tried this?
Is this ready to be merged?

@hrueger
Copy link
Collaborator

hrueger commented Jul 15, 2021

Works for me 👍

@josephdadams josephdadams merged commit bff353a into josephdadams:master Jul 15, 2021
@josephdadams
Copy link
Owner

Merged. If anyone has an issue we can troubleshoot. 😂

@MatteoGheza MatteoGheza deleted the feat_docker branch August 7, 2021 10:04
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.

None yet

3 participants