Skip to content

Instantly share code, notes, and snippets.

@lalyos
Last active October 19, 2022 05:50
Show Gist options
  • Save lalyos/99341041e6b513a05ac945c897ef518e to your computer and use it in GitHub Desktop.
Save lalyos/99341041e6b513a05ac945c897ef518e to your computer and use it in GitHub Desktop.
Test figlets

You can check that:

  • docker is installed
  • docker has network acces (can pull images)
  • docker container has network acces

Usage

docker run -t lalyos/test

Expected output is: network is ok

Build

This is a self note. Probably never have to be rebuilt

docker build -t lalyos/test https://gist.github.com/99341041e6b513a05ac945c897ef518e.git#main

tl;dr

first version was without a custom image, but its just to long to remember ...

docker run curl -Ls bit.ly/network-test
FROM alpine
RUN apk add -X http://dl-cdn.alpinelinux.org/alpine/edge/testing lolcat curl
CMD curl -sL https://gist.githubusercontent.com/lalyos/99341041e6b513a05ac945c897ef518e/raw/network.txt | lolcat
_ _ _ _
_ __ ___| |___ _____ _ __| | __ (_)___ ___ | | __
| '_ \ / _ \ __\ \ /\ / / _ \| '__| |/ / | / __| / _ \| |/ /
| | | | __/ |_ \ V V / (_) | | | < | \__ \ | (_) | <
|_| |_|\___|\__| \_/\_/ \___/|_| |_|\_\ |_|___/ \___/|_|\_\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment