dockerized instance in a K8 cluster network isnt ready

Open
#41 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, kubernetes, shell

Research direction

Start by reading entrypoint.sh and entrypoint-user.sh to trace when downloads and installation begin relative to network availability. Reproduce the startup in a Kubernetes cluster, then verify the image waits for a usable internet response before continuing without requiring an image reload.

Written by the indexing model from the issue text.

Description

Have an issue with linuxgsm failing because the entrypoint.sh tries to download and install before the network is initialized.

can a delay be added to wait for a full response from the internet before it begins the processes in entrypoint-user.sh?

a simple while loop works but obviously not if I have to reload the docker image

#pause for network start
while ! ping -c 4 google.com > /dev/null;
do 
  echo -e "Waiting for internet connection."
  sleep 10
done
Dominant language
Shell
Stars
23
Forks
17
Avg merge
1d 1h
Merged PRs (30d)
9

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GameServerManagers/docker-linuxgsm

All issues in GameServerManagers/docker-linuxgsm

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.