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

fix: Apply suggested fix from @fcoelho to support podman #19115

Closed
wants to merge 15 commits into from
Closed

fix: Apply suggested fix from @fcoelho to support podman #19115

wants to merge 15 commits into from

Conversation

rosskarchner
Copy link

The code comes from this comment: #16209 (comment)


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Feb 23, 2022

@mergify
Copy link
Contributor

mergify bot commented Feb 23, 2022

Title does not follow the guidelines of Conventional Commits. Please adjust title before merge.

@rosskarchner rosskarchner changed the title Apply suggested fix from @fcoelho to support podman fix: Apply suggested fix from @fcoelho to support podman Feb 23, 2022
@rosskarchner
Copy link
Author

I don't think the build failures have anything to do with the change I've introduced

@aws-cdk-automation
Copy link
Collaborator

This PR has been in BUILD FAILING for 21 days, and looks abandoned. It will be closed in 10 days if no further commits are pushed to it.

@@ -70,7 +70,7 @@ export class Docker {
await this.execute(['login',
'--username', credentials.username,
'--password-stdin',
credentials.endpoint], {
credentials.endpoint.replace(/^https?:\/\//, '')], {

Choose a reason for hiding this comment

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

Suggested change
credentials.endpoint.replace(/^https?:\/\//, '')], {
credentials.endpoint.replace(/^https?:\/\/|\/$/g, '')], {

Remove end slash too considering that the test data included an end slash in the endpoint.

Choose a reason for hiding this comment

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

@rosskarchner Tests also need to be fixed in packages/cdk-assets/test/docker-images.test.ts

Here is one test that is failing

{ commandLine: ['docker', 'login', '--username', 'user', '--password-stdin', 'https://proxy.com/'] },

I believe there are four total that use https

Copy link
Author

Choose a reason for hiding this comment

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

@Ragnoroct thanks, I'll take a look at these (once I get a working environment to test with)

@rosskarchner
Copy link
Author

OK-- I've moved on from needing this (I'm no longer attempting to run CDK with podman), and I'm feeling a little out of my depth trying to understand the test suite. I'm going to go ahead and close this.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 8eff0d5
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

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