Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weeezes rootless + changes #42

Merged
merged 23 commits into from Jul 2, 2020
Merged

Weeezes rootless + changes #42

merged 23 commits into from Jul 2, 2020

Conversation

drewbailey
Copy link
Contributor

@drewbailey drewbailey commented Jul 1, 2020

@weeezes I wanted to make a few changes to your PR to address the env and volumes changes. Could you let me know if it works in your scenario?

For me the following works:

job file

job "example" {
  datacenters = ["dc1"]
  type        = "service"

  group "cache" {
    count = 1
    restart {
      attempts = 2
      interval = "30m"
      delay    = "15s"
      mode     = "fail"
    }
    task "redis" {
      driver = "podman"

      config {
        image = "redis"

        port_map {
          db = 6379
        }

        volumes = [
          "alloc/:/mnt/alloc",
          "local/:/mnt/local",
          "secrets/:/mnt/secrets",
        ]
      }

      resources {
        cpu    = 500 # 500 MHz
        memory = 256 # 256MB

        network {
          # mbits = 10
          port "db" {}
        }
      }
    }
  }
}
→ podman ps
CONTAINER ID  IMAGE                           COMMAND       CREATED        STATUS            PORTS                                                 NAMES
b3d720029540  docker.io/library/redis:latest  redis-server  3 seconds ago  Up 2 seconds ago  127.0.0.1:26175->6379/tcp, 127.0.0.1:26175->6379/udp  redis-5cde6463-0174-de04-eaa0-3778b9ad0675
→ crun list
NAME                                                             PID       STATUS   BUNDLE PATH
b3d720029540d6f0e0a0333d5944e789ab7ffcf4b0748dd4a32b869b4292729b 70330     running  /home/drew/.local/share/containers/storage/vfs-containers/b3d720029540d6f0e0a0333d5944e789ab7ffcf4b0748dd4a32b869b4292729b/userdata

@drewbailey drewbailey requested a review from towe75 July 1, 2020 19:03
@drewbailey drewbailey changed the title Weeezes rootless v2 Weeezes rootless + changes Jul 1, 2020
@towe75 towe75 merged commit 35a6ff0 into master Jul 2, 2020
@towe75 towe75 deleted the weeezes-rootless-v2 branch July 2, 2020 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants