trimstray / htrace.sh

My simple Swiss Army knife for http/https troubleshooting and profiling.
GNU General Public License v3.0
3.76k stars 235 forks source link

Fix docker build #55

Closed beatak closed 5 years ago

beatak commented 5 years ago

This patch is to fix https://github.com/trimstray/htrace.sh/issues/54

I also ditched the git clone step in build/Dockerfile, since you should have all files in local.

beatak commented 5 years ago

Travis failure (The command "sudo apt-get -qq update" failed and exited with 100 during .) seems to be random. I don't have a privilege to restart but restart will most definitely solve it.

trimstray commented 5 years ago

Thanks! :+1:

trimstray commented 5 years ago

For this:

WORKDIR /opt/htrace.sh

COPY bin /opt/htrace.sh/bin/
COPY lib /opt/htrace.sh/lib/
COPY log /opt/htrace.sh/log/
COPY src /opt/htrace.sh/src/
COPY static /opt/htrace.sh/static/
COPY dependencies.sh setup.sh /opt/htrace.sh/

RUN ./setup.sh install

I got:

Step 16/24 : COPY bin /opt/htrace.sh/bin/
COPY failed: stat /var/lib/docker/tmp/docker-builder657918251/bin: no such file or directory
beatak commented 5 years ago

Hmm, sorry about that. I'll take a look at it now.

trimstray commented 5 years ago

@beatak : no problem ;)

beatak commented 5 years ago

As far as I try, the build goes without errors. @trimstray can you tell me how you got the error? build/Dockerfile now expects the build context as the project root, instead of build directory because it needs to copy all files in this project. Do you run build/build.sh? or…?

trimstray commented 5 years ago

I'm idiot... build/build.sh... it's working! thanks mate :100: