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

Add kola test that uses a proxy and ostree #2392

Open
jmarrero opened this issue Apr 21, 2023 · 0 comments
Open

Add kola test that uses a proxy and ostree #2392

jmarrero opened this issue Apr 21, 2023 · 0 comments
Assignees
Labels
jira For syncing to Jira. Only works for issues (i.e. not PRs)

Comments

@jmarrero
Copy link
Member

A test like this would have exposed this issue earlier:
coreos/fedora-coreos-tracker#1477

@dustymabe sugested using tinyproxy similar to:
##########################

Build a container to run a proxy from and run proxy

podman build -t tinyproxy -f - <<EOF
FROM registry.fedoraproject.org/fedora:37
RUN dnf install -y tinyproxy
# Allow requests from all hosts
RUN sed -i 's|^Allow 127.0.0.1$|Allow 0.0.0.0/0|' /etc/tinyproxy/tinyproxy.conf
# Remove logfile specification so it will log to stdout
RUN sed -i 's|^LogFile|#LogFile|' /etc/tinyproxy/tinyproxy.conf
RUN mkdir -p /run/tinyproxy
CMD [ "/usr/bin/tinyproxy", "-d" ]
EOF

After build we can run with:

sudo firewall-cmd --add-port=8888/tcp
podman run --rm -it --name tinyproxy --publish 8888:8888 tinyproxy

#############################

@jmarrero jmarrero self-assigned this Apr 21, 2023
@jmarrero jmarrero added the jira For syncing to Jira. Only works for issues (i.e. not PRs) label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira For syncing to Jira. Only works for issues (i.e. not PRs)
Projects
None yet
Development

No branches or pull requests

1 participant