Skip to content

Commit

Permalink
podman support
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Glonek committed Jan 9, 2024
1 parent ae69dd1 commit 5d27779
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* ENHANCEMENT: The `logs get` command will append original filename as suffix and will ask if files would be overwritten unless `-f` is specified.
* ENHANCEMENT: For centos stream 8/9 installs, there is no more need to re-enable repos and sync distros.
* ENHANCEMENT: All inventory instance listings in cloud will now show instance type in the last field.
* ENHANCEMENT: Tested and documented podman backend support.

#### 7.3.0
* Volume command supports mounts on centos/amazon.
Expand Down
1 change: 1 addition & 0 deletions LATEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ _Release Date: UNDEF_
* ENHANCEMENT: The `logs get` command will append original filename as suffix and will ask if files would be overwritten unless `-f` is specified.
* ENHANCEMENT: For centos stream 8/9 installs, there is no more need to re-enable repos and sync distros.
* ENHANCEMENT: All inventory instance listings in cloud will now show instance type in the last field.
* ENHANCEMENT: Tested and documented podman backend support.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,24 @@ See [this document](docs/building.md) for manually building AeroLab (not recomme

## Supported backends

* Docker and Docker Desktop
* Docker Native and Docker Desktop
* on macOS
* on Linux
* on Windows
* Podman as a service with official docker `docker-cli` command line tool
* Podman Desktop
* Install Podman Desktop
* Use `docker` backend in aerolab
* Install full official `docker-cli`
* Example MacOS: `brew install docker-cli`
* Example Ubuntu: follow the [official documentation](https://docs.docker.com/engine/install/ubuntu/), but instead of installing the full docker engine, just install `docker-ce-cli` package
* Podman Native on Linux
* Follow [podman documentation](https://podman.io/docs/installation) to install podman.
* To install the full docker cli tool, follow the [official documentation](https://docs.docker.com/engine/install/ubuntu/), but instead of installing the full docker engine, just install `docker-ce-cli` package.
* Enable podman service with: `sudo systemctl enable --now podman.service podman.socket && sudo touch /etc/containers/nodocker`.
* AWS
* GCP
* Enable the docker repositories: `sudo vi /etc/containers/registries.conf` and ensure docker is listed on this line: `unqualified-search-registries = ["docker.io","localhost"]`.
* Use `docker` backend in aerolab
* [AWS](docs/aws-setup.md)
* [GCP](docs/gcp-setup.md)

## Routing to the containers using Docker Desktop

Expand Down
2 changes: 2 additions & 0 deletions src/backendDocker.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ func (d *backendDocker) Inventory(owner string, inventoryItems []int) (inventory
var i1, asdVer string
var i2 []string
i3 := []string{""}
tt[3] = strings.TrimPrefix(tt[3], "localhost/")
if i == 1 {
i1 = strings.TrimPrefix(tt[3], "aerolab-")
i2 = strings.Split(i1, "_")
Expand Down Expand Up @@ -442,6 +443,7 @@ func (d *backendDocker) ListTemplates() ([]backendVersion, error) {
for scanner.Scan() {
t := scanner.Text()
repo := strings.Trim(strings.Split(t, ";")[0], "'\"")
repo = strings.TrimPrefix(repo, "localhost/")
if strings.Contains(repo, dockerNameHeader+"") {
if len(repo) > len(dockerNameHeader)+2 {
repo = repo[len(dockerNameHeader):]
Expand Down

0 comments on commit 5d27779

Please sign in to comment.