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

v2023.2 - 21/06/2023 installation problem with squid using podman #987

Open
TeijoKal opened this issue Jul 18, 2023 · 4 comments
Open

v2023.2 - 21/06/2023 installation problem with squid using podman #987

TeijoKal opened this issue Jul 18, 2023 · 4 comments
Assignees
Labels
deployment This issue is about the deployment of the Docker image, WAR file or operational environment user-to-fix Problem is present on user side

Comments

@TeijoKal
Copy link

We can not use docker in our corporate network. So we are using podman instead.

Have the following issue with installing the validator.

After running
podman build -t validator .

It causes the following error:

STEP 33/42: RUN apt-get -y install squid
Reading package lists...
Building dependency tree...
Reading state information...
Package squid is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'squid' has no installation candidate
Error: building at STEP "RUN apt-get -y install squid": while running runtime: exit status 100

@github-actions github-actions bot added this to To do in Validator issues Jul 18, 2023
@fabiovinci fabiovinci added under analysis deployment This issue is about the deployment of the Docker image, WAR file or operational environment labels Jul 18, 2023
@TeijoKal
Copy link
Author

TeijoKal commented Aug 8, 2023

I think i found the reason for this.

You have made the package in Debian environment and our environment is Redhat 9 . This is the reason for this.

But now we come to the next problem:

I installed new Debian environment and tried to build. Did not work because it did not find the needed packages in repositories. So the question now is that which repositories have to be installed in fresh Debian environment so the build will work??

And next question is how can the freshly build package can be transfered to another environment??

@DanielMartinPerezdeLeon
Copy link
Collaborator

Dear @TeijoKal ,

thank you very much for reporting the issue.
As far as we understand, the current set-up of the INSPIRE Reference Validator doesn't align with your infrastructure, as you are deploying it with Podman, so our support is constrained by your technological environment.

From our perspective, it appears that the issue you have encountered is related to the OS instructions of the Dockerfile used by the INSPIRE Reference Validator Docker instance that need to be adapted to your specific needs.
More specifically, it seems to be related to these lines:

RUN apt-get update; true
RUN apt-get -y install squid

Our Dockerfile is configured to install all the required packages in the Debian 11 environment where we are currently running the INSPIRE Reference Validator.
If you wish to use the Docker instance with a different operating system, the Dockerfile instructions must be adapted to that specific OS.

For example, if you are using Alpine Linux as the base OS for the Docker instance, the aforementioned lines should be changed to:

RUN apk update; true
RUN apk add squid

Please make these changes to the Dockerfile and try to deploy the Podman again.

Feel free to contact us if you have any questions or if the problem persists.

Regards,

@TeijoKal
Copy link
Author

TeijoKal commented Nov 7, 2023 via email

@fabiovinci fabiovinci added user-to-fix Problem is present on user side and removed under analysis labels Nov 8, 2023
@DanielMartinPerezdeLeon
Copy link
Collaborator

Dear @TeijoKal ,

Regarding the OS repositories, please note that v2023.3 is using a base image jetty:9.4.48-jre11-openjdk which relies on Debian 11-Bullseye, so, if you are using a different version of the OS, you may not find the required components in the repositories defined for the OS version you're using.

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment This issue is about the deployment of the Docker image, WAR file or operational environment user-to-fix Problem is present on user side
Projects
Development

No branches or pull requests

4 participants