-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.21 KB
/
actions_docker_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Actions Docker Test
on:
pull_request:
branches:
- master
jobs:
Docker-Test:
runs-on: ubuntu-latest
steps:
- name: UID outside of Docker
run: |
echo "Outside of Docker I am $(id)"
pwd
touch testfile
ls -l
cat /etc/os-release
apt-get -y update
apt-get -y install bind9-dnsutils iproute2 net-tools
cat /etc/resolv.conf
nslookup artifactory.dc.hpdd.intel.com
which docker
dpkg -S $(which docker)
ip route ls
ip addr ls
ifconfig -a
- name: UID inside of Docker
run: |
docker run -v "$PWD":"$PWD" -w "$PWD" --rm ubuntu:latest \
bash -c 'echo "Inside of Docker I am $(id)"; pwd; ls -l;
cat /etc/os-release
apt-get -y update
apt-get -y install bind9-dnsutils iproute2 net-tools
ip route ls
ip addr ls
ifconfig -a
cat /etc/resolv.conf
echo "nameserver 169.254.0.1" > /etc/resolv.conf
cat /etc/resolv.conf
nslookup artifactory.dc.hpdd.intel.com'