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

Use docker COPY directice #10

Open
glensc opened this issue Sep 16, 2020 · 3 comments
Open

Use docker COPY directice #10

glensc opened this issue Sep 16, 2020 · 3 comments

Comments

@glensc
Copy link

glensc commented Sep 16, 2020

you can replace this:

# Clone xhgui and install master as there is no suitable tag, then remove useless files
RUN     git clone -b 0.13.0 --depth 1 https://github.com/perftools/xhgui /usr/local/src/xhgui && \
        cd /usr/local/src/xhgui && \
        rm -rf /usr/local/src/xhgui/.git \
               /usr/local/src/xhgui/.scrutinizer.yml \
               /usr/local/src/xhgui/.travis.yml \
               /usr/local/src/xhgui/phpunit.xml \
               /usr/local/src/xhgui/README.md \
               /usr/local/src/xhgui/tests

with:

COPY --from=xhgui/xhgui:0.13.0 /var/www/xhgui /usr/local/src/xhgui

what does it mean "no suitable tag"? have you reported your issue to xhgui issue tracker?

@edyan
Copy link
Owner

edyan commented Sep 19, 2020

Hi, I'll look at that, and thanks for your comment. It looks like xhgui and the profiler are now two separate packages (look at master + the docker image doesn't contain the external/ directory anymore, even in 0.13). Either I put both on the same image (that we can mount a common volume between apps) or I only install xhgui without profiler, with a doc for each ton integrate the profiler as he wish

About the "no suitable tag" it was when xhgui didn't maintained well its tags ;)

@edyan
Copy link
Owner

edyan commented Oct 3, 2020

Hi @glensc , I have refactored my images for PHP > 7.
I am relying now on the latest stable version of xhgui. They have removed the header.php script, so i have created mine. If you have time to test, I would be glad 👍

@glensc
Copy link
Author

glensc commented Dec 15, 2020

I'm not using this project, so I will not validate your outcome.

I see now, that you are using 0.14.0:

but you should update to at least the latest 0.16, so people don't need to rely on hacks:

in other words, this ended up in 0.16.0:

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

No branches or pull requests

2 participants