Skip to content

Commit

Permalink
Add ubuntu 22.04 image (#28)
Browse files Browse the repository at this point in the history
* Add ubuntu 22.04 image

* add newline
  • Loading branch information
qmuntal authored Oct 25, 2024
1 parent b0f272b commit 02e8663
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
5 changes: 5 additions & 0 deletions images.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ mcr.microsoft.com/microsoft-go/infra-images:cbl-mariner-2.0-arm64-fips
mcr.microsoft.com/microsoft-go/infra-images:ubuntu-20.04-amd64-default
```

`ubuntu-22.04-amd64-default` ([src/ubuntu/22.04/amd64/default](./src/ubuntu/22.04/amd64/default/Dockerfile))
```
mcr.microsoft.com/microsoft-go/infra-images:ubuntu-22.04-amd64-default
```

16 changes: 16 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,22 @@
}
}
]
},
{
"productVersion": "",
"sharedTags": {},
"platforms": [
{
"architecture": "amd64",
"dockerfile": "src/ubuntu/22.04/amd64/default",
"os": "linux",
"osVersion": "22.04",
"tags": {
"ubuntu-22.04-amd64-default": {},
"ubuntu-22.04-amd64-default-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {}
}
}
]
}
]
}
Expand Down
31 changes: 31 additions & 0 deletions src/ubuntu/22.04/amd64/default/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM ubuntu.azurecr.io/ubuntu:22.04

# Install dependencies needed to build, test, and longtest Go.
RUN apt-get update \
&& apt-get install -y \
ca-certificates \
binutils \
gcc \
gdb \
git \
mercurial \
sudo \
&& rm -rf /var/lib/apt/lists/*

# Install tools used to add the Microsoft package repository, necessary to install PowerShell.
RUN apt-get update \
&& apt-get install -y \
curl \
gnupg\
apt-transport-https \
&& rm -rf /var/lib/apt/lists/*

# Add the Microsoft package repository.
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
&& echo "deb https://packages.microsoft.com/ubuntu/22.04/prod/ jammy main" > /etc/apt/sources.list.d/microsoft.list

# Install PowerShell.
RUN apt-get update \
&& apt-get install -y \
powershell \
&& rm -rf /var/lib/apt/lists/*

0 comments on commit 02e8663

Please sign in to comment.