Skip to content

Update deploy_docker.sh#716

Closed
bugy wants to merge 4 commits into
masterfrom
test-amd-build
Closed

Update deploy_docker.sh#716
bugy wants to merge 4 commits into
masterfrom
test-amd-build

Conversation

@bugy

@bugy bugy commented Nov 7, 2023

Copy link
Copy Markdown
Owner

No description provided.

@bugy bugy mentioned this pull request Nov 7, 2023
@bugy

bugy commented Nov 7, 2023

Copy link
Copy Markdown
Owner Author

@vnghia

vnghia commented Nov 7, 2023

Copy link
Copy Markdown
Collaborator

The only thing we need to check is the docker build process, which is only triggered if we create a release :/

@vnghia

vnghia commented Nov 7, 2023

Copy link
Copy Markdown
Collaborator

Ah no, so the problem is deeper than I thought. Since the Docker image is just copying the process, which is specific for amd64. I will investigate and return back to you later

@bugy

bugy commented Nov 7, 2023

Copy link
Copy Markdown
Owner Author

Sorry, which process are you talking about?

@vnghia

vnghia commented Nov 7, 2023

Copy link
Copy Markdown
Collaborator

I guess the right thing to do is having a standalone Dockerfile as in #206. We can use the multi-stage build technique to keep the image size as small as possible (probably approximately equal to the current one) so your concern in this #206 (comment) is solved

@vnghia

vnghia commented Nov 7, 2023

Copy link
Copy Markdown
Collaborator

Sorry, which process are you talking about?

Sorry, I mean the output of the CI process, the build/script-server.zip

@bugy

bugy commented Nov 7, 2023

Copy link
Copy Markdown
Owner Author

But the zip file should contain only python files, which are supposed to be platform independent

@vnghia

vnghia commented Nov 7, 2023

Copy link
Copy Markdown
Collaborator

I missed that part. Could you trigger the docker build ?

@bugy

bugy commented Nov 7, 2023

Copy link
Copy Markdown
Owner Author

@bugy

bugy commented Nov 7, 2023

Copy link
Copy Markdown
Owner Author

I'm trying to make docker image work for PRs

@bugy

bugy commented Nov 7, 2023

Copy link
Copy Markdown
Owner Author

@vnghia there is an error:

unknown flag: --platform

@bugy

bugy commented Nov 7, 2023

Copy link
Copy Markdown
Owner Author

@vnghia

vnghia commented Nov 7, 2023

Copy link
Copy Markdown
Collaborator

Is there a way I can test it on my PR ?

@bugy

bugy commented Nov 7, 2023

Copy link
Copy Markdown
Owner Author

can you try pushing any changes from your PR? I made a change to travis, probably it should build your PR now

@vnghia

vnghia commented Nov 7, 2023

Copy link
Copy Markdown
Collaborator

@vnghia

vnghia commented Nov 7, 2023

Copy link
Copy Markdown
Collaborator

Can you show me the log :/

@bugy

bugy commented Nov 7, 2023

Copy link
Copy Markdown
Owner Author

https://app.travis-ci.com/github/bugy/script-server/builds/267081647

don't you have access to this section?
image

@bugy

bugy commented Nov 7, 2023

Copy link
Copy Markdown
Owner Author

btw, I gave you access to this repo, you can try doing changes in my branch

@vnghia

vnghia commented Nov 7, 2023

Copy link
Copy Markdown
Collaborator

I see the log now, Travis blocked me while I am on VPN :/

@vnghia

vnghia commented Nov 7, 2023

Copy link
Copy Markdown
Collaborator

hmm it seems that the CI won't run if there are my trace in the PR, maybe because I am a new contributor and it won't run unless you have to approve the PR once ?

@vnghia vnghia self-requested a review November 7, 2023 19:36
@bugy

bugy commented Nov 7, 2023

Copy link
Copy Markdown
Owner Author

@vnghia I triggered the build manually and it worked! Could you try running arm docker container, please?
https://hub.docker.com/repository/docker/bugy/script-server/tags?page=1&ordering=last_updated

@vnghia

vnghia commented Nov 7, 2023

Copy link
Copy Markdown
Collaborator

It's working! Actually, you can test it on your own computer with docker run --rm -it --platform linux/arm64 -p 5000:5000 bugy/script-server:test-amd-build assuming that you have qemu installed.

@bugy

bugy commented Nov 8, 2023

Copy link
Copy Markdown
Owner Author

Cool, thanks! Could you apply the same changes to your PR please? And then we merge it

@vnghia

vnghia commented Nov 8, 2023

Copy link
Copy Markdown
Collaborator

Done !

@vnghia vnghia closed this Nov 8, 2023
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.

2 participants