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

Update dockerfile and actions #732

Merged
merged 9 commits into from
Mar 14, 2024
Merged

Update dockerfile and actions #732

merged 9 commits into from
Mar 14, 2024

Conversation

PaulJKim
Copy link
Collaborator

@PaulJKim PaulJKim commented Jan 8, 2024

Summary of changes

Asana Ticket: migrate realtime-signs to Linux cluster

New Dockerfile and github actions for moving Realtime Signs to run on linux

Comment on lines 22 to 23
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Realtime Signs doesn't have these secrets stored in the repo environments so I guess we'll have to add them. I thought though that we wanted to avoid saving AWS credentials in GitHub repos directly, or has that changed?

Copy link
Member

Choose a reason for hiding this comment

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

You should be using v2 which uses a different connection type to AWS: https://github.com/mbta/busloc/blob/master/.github/workflows/staging.yml#L25-L34

@PaulJKim PaulJKim requested review from ianwestcott, paulswartz and a team January 8, 2024 20:15
Copy link

github-actions bot commented Jan 8, 2024

Coverage of commit 3a183bb

Summary coverage rate:
  lines......: 76.4% (1949 of 2550 lines)
  functions..: 78.3% (530 of 677 functions)
  branches...: no data found

Files changed coverage rate: n/a

Download coverage report

Copy link
Member

@paulswartz paulswartz left a comment

Choose a reason for hiding this comment

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

You might want to include a docker.yml to ensure that the Dockerfile builds: https://github.com/mbta/busloc/blob/master/.github/workflows/docker.yml

Comment on lines 22 to 23
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Copy link
Member

Choose a reason for hiding this comment

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

You should be using v2 which uses a different connection type to AWS: https://github.com/mbta/busloc/blob/master/.github/workflows/staging.yml#L25-L34

COPY config/runtime.exs config\\runtime.exs
RUN mix release
COPY config/runtime.exs config/runtime.exs
RUN mix release linux
Copy link
Member

Choose a reason for hiding this comment

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

I got an error at this line; did you mean to also check in a change to mix.exs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah yes, thank you

@paulswartz paulswartz removed the request for review from ianwestcott January 9, 2024 14:52
Copy link

github-actions bot commented Jan 9, 2024

Coverage of commit 8c951d9

Summary coverage rate:
  lines......: 76.4% (1949 of 2550 lines)
  functions..: 78.3% (530 of 677 functions)
  branches...: no data found

Files changed coverage rate: n/a

Download coverage report

Copy link

Coverage of commit 2b67400

Summary coverage rate:
  lines......: 76.4% (1948 of 2550 lines)
  functions..: 78.3% (530 of 677 functions)
  branches...: no data found

Files changed coverage rate: n/a

Download coverage report

Copy link

Coverage of commit f969b2d

Summary coverage rate:
  lines......: 76.4% (1949 of 2550 lines)
  functions..: 78.3% (530 of 677 functions)
  branches...: no data found

Files changed coverage rate: n/a

Download coverage report

Copy link

Coverage of commit 3023481

Summary coverage rate:
  lines......: 76.4% (1949 of 2550 lines)
  functions..: 78.3% (530 of 677 functions)
  branches...: no data found

Files changed coverage rate: n/a

Download coverage report

Copy link

Coverage of commit 123ba1b

Summary coverage rate:
  lines......: 76.4% (1948 of 2550 lines)
  functions..: 78.3% (530 of 677 functions)
  branches...: no data found

Files changed coverage rate: n/a

Download coverage report

Copy link

Coverage of commit dbe5976

Summary coverage rate:
  lines......: 76.4% (1948 of 2550 lines)
  functions..: 78.3% (530 of 677 functions)
  branches...: no data found

Files changed coverage rate: n/a

Download coverage report

@PaulJKim PaulJKim merged commit dc625ff into main Mar 14, 2024
5 of 7 checks passed
@PaulJKim PaulJKim deleted the pk/windows-to-linux branch March 14, 2024 17:12
PaulJKim added a commit that referenced this pull request Mar 14, 2024
PaulJKim added a commit that referenced this pull request Mar 14, 2024
PaulJKim added a commit that referenced this pull request Mar 14, 2024
PaulJKim added a commit that referenced this pull request Mar 14, 2024
PaulJKim added a commit that referenced this pull request Mar 14, 2024
PaulJKim added a commit that referenced this pull request Mar 14, 2024
PaulJKim added a commit that referenced this pull request Mar 15, 2024
PaulJKim added a commit that referenced this pull request Mar 15, 2024
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.

3 participants