bugy / script-server

Web UI for your scripts with execution management
Other
1.59k stars 247 forks source link

Update deploy_docker.sh #716

Closed bugy closed 10 months ago

bugy commented 11 months ago

Test results: https://script-server-tests.s3-us-west-2.amazonaws.com/master/750/index.html

vnghia commented 11 months ago

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

vnghia commented 11 months ago

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 commented 11 months ago

Sorry, which process are you talking about?

vnghia commented 11 months ago

I guess the right thing to do is having a standalone Dockerfile as in https://github.com/bugy/script-server/pull/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 https://github.com/bugy/script-server/pull/206#issuecomment-481225031 is solved

vnghia commented 11 months ago

Sorry, which process are you talking about?

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

bugy commented 11 months ago

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

vnghia commented 11 months ago

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

bugy commented 11 months ago

Test results: https://script-server-tests.s3-us-west-2.amazonaws.com/master/752/index.html

bugy commented 11 months ago

I'm trying to make docker image work for PRs

bugy commented 11 months ago

@vnghia there is an error:

unknown flag: --platform
bugy commented 11 months ago

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

vnghia commented 11 months ago

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

bugy commented 11 months ago

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

vnghia commented 11 months ago

Still not running, but adding three lines here is good I think: https://github.com/bugy/script-server/pull/715/files#diff-6ac3f79fc25d95cd1e3d51da53a4b21b939437392578a35ae8cd6d5366ca5485

vnghia commented 11 months ago

Can you show me the log :/

bugy commented 11 months ago

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

don't you have access to this section? image

bugy commented 11 months ago

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

vnghia commented 11 months ago

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

vnghia commented 11 months ago

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 ?

bugy commented 11 months ago

@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 commented 11 months ago

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 commented 10 months ago

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

vnghia commented 10 months ago

Done !