Skip to content

Instantly share code, notes, and snippets.

@TopperBG
Last active April 24, 2024 06:38
Show Gist options
  • Save TopperBG/4f9e0074ccdfb0dc84c2d1af6711a7f6 to your computer and use it in GitHub Desktop.
Save TopperBG/4f9e0074ccdfb0dc84c2d1af6711a7f6 to your computer and use it in GitHub Desktop.

Revisions

  1. TopperBG revised this gist Apr 24, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pmm-temp.sh
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    curl -X DELETE "http://192.168.1.110:2375/containers/pmm-temp"

    curl -X POST -H "Content-Type: application/json" "http://192.168.1.110:2375/containers/create?name=pmm-temp" -d '{
    "Image": "meisnate12/plex-meta-manager",
    "Image": "kometateam/imagemaid",
    "Cmd": ["--overlays", "--run", "-ig", "--ignore-schedules", "--no-missing"],
    "HostConfig": {
    "Binds": ["/root/docker/etc/plexmetamanager:/config"],
  2. TopperBG revised this gist Feb 1, 2024. No changes.
  3. TopperBG revised this gist Feb 1, 2024. 2 changed files with 2 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion override.conf
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #/etc/systemd/system/docker.service.d/override.conf <- where to save a file, remove that line after thatf
    #/etc/systemd/system/docker.service.d/override.conf <- where to save a file, remove that line after that
    [Service]
    ExecStart=
    ExecStart=/usr/bin/dockerd --config-file /etc/docker/daemon.json --containerd=/run/containerd/containerd.sock
    2 changes: 1 addition & 1 deletion pmm-temp.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash

    # Place sciprt in /config folder, mapped in Tatulli container
    # Place sciprt in /config folder, mapped in Tatulli container. Change 192.168.1.110 according your setup.

    curl -X DELETE "http://192.168.1.110:2375/containers/pmm-temp"

  4. TopperBG revised this gist Nov 3, 2023. 2 changed files with 3 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion override.conf
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #/etc/systemd/system/docker.service.d/override.conf <- where to save a file, remove that line after that
    #/etc/systemd/system/docker.service.d/override.conf <- where to save a file, remove that line after thatf
    [Service]
    ExecStart=
    ExecStart=/usr/bin/dockerd --config-file /etc/docker/daemon.json --containerd=/run/containerd/containerd.sock
    3 changes: 2 additions & 1 deletion pmm-temp.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    # /config folder, mapped in Tatulli container <- where to save a file, remove that line after that
    #!/bin/bash

    # Place sciprt in /config folder, mapped in Tatulli container

    curl -X DELETE "http://192.168.1.110:2375/containers/pmm-temp"

    curl -X POST -H "Content-Type: application/json" "http://192.168.1.110:2375/containers/create?name=pmm-temp" -d '{
  5. TopperBG revised this gist Nov 3, 2023. 3 changed files with 3 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion daemon.json
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #/etc/docker/daemon.json
    #/etc/docker/daemon.json <- where to save a file, remove that line after that
    {
    "hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]
    }
    2 changes: 1 addition & 1 deletion override.conf
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #/etc/systemd/system/docker.service.d/override.conf
    #/etc/systemd/system/docker.service.d/override.conf <- where to save a file, remove that line after that
    [Service]
    ExecStart=
    ExecStart=/usr/bin/dockerd --config-file /etc/docker/daemon.json --containerd=/run/containerd/containerd.sock
    1 change: 1 addition & 0 deletions pmm-temp.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    # /config folder, mapped in Tatulli container <- where to save a file, remove that line after that
    #!/bin/bash

    curl -X DELETE "http://192.168.1.110:2375/containers/pmm-temp"
  6. TopperBG created this gist Nov 3, 2023.
    4 changes: 4 additions & 0 deletions daemon.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #/etc/docker/daemon.json
    {
    "hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]
    }
    4 changes: 4 additions & 0 deletions override.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #/etc/systemd/system/docker.service.d/override.conf
    [Service]
    ExecStart=
    ExecStart=/usr/bin/dockerd --config-file /etc/docker/daemon.json --containerd=/run/containerd/containerd.sock
    18 changes: 18 additions & 0 deletions pmm-temp.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    #!/bin/bash

    curl -X DELETE "http://192.168.1.110:2375/containers/pmm-temp"

    curl -X POST -H "Content-Type: application/json" "http://192.168.1.110:2375/containers/create?name=pmm-temp" -d '{
    "Image": "meisnate12/plex-meta-manager",
    "Cmd": ["--overlays", "--run", "-ig", "--ignore-schedules", "--no-missing"],
    "HostConfig": {
    "Binds": ["/root/docker/etc/plexmetamanager:/config"],
    "AutoRemove": true
    }
    }'

    curl -X POST -H "Content-Type: application/json" "http://192.168.1.110:2375/containers/pmm-temp/start"

    TIMESTAMP=`date "+%Y-%m-%d %H:%M:%S"`
    echo "PMM run at $TIMESTAMP" >> /config/pmm-temp.log
    exit 0