Skip to content

Commit

Permalink
feat: added the basic functionality to check for updates to Docker im…
Browse files Browse the repository at this point in the history
…ages.
  • Loading branch information
orenlab committed Dec 12, 2024
1 parent 8268b1d commit c1ac63e
Show file tree
Hide file tree
Showing 16 changed files with 820 additions and 760 deletions.
84 changes: 42 additions & 42 deletions .run/Dockerfile.run.xml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Dockerfile" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="latest" />
<option name="containerName" value="pytmbot" />
<option name="sourceFilePath" value="Dockerfile" />
<option name="volumeBindings">
<list>
<DockerVolumeBindingImpl>
<option name="containerPath" value="/var/run/docker.sock" />
<option name="hostPath" value="/var/run/docker.sock" />
<option name="readOnly" value="true" />
</DockerVolumeBindingImpl>
</list>
</option>
</settings>
</deployment>
<method v="2" />
</configuration>
<configuration default="false" name="Dockerfile" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="orenlab/pytmbot:latest" />
<option name="buildCliOptions" value="--target self_build" />
<option name="command" value="--log-level DEBUG --mode dev" />
<option name="containerName" value="pytmbot" />
<option name="commandLineOptions" value="" />
<option name="showCommandPreview" value="true" />
<option name="sourceFilePath" value="Dockerfile" />
<option name="volumeBindings">
<list>
<DockerVolumeBindingImpl>
<option name="containerPath" value="/var/run/docker.sock" />
<option name="hostPath" value="/var/run/docker.sock" />
<option name="readOnly" value="true" />
</DockerVolumeBindingImpl>
</list>
</option>
</settings>
</deployment>
<method v="2" />
</configuration>
<configuration default="false" name="Dockerfile" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="latest"/>
<option name="containerName" value="pytmbot"/>
<option name="sourceFilePath" value="Dockerfile"/>
<option name="volumeBindings">
<list>
<DockerVolumeBindingImpl>
<option name="containerPath" value="/var/run/docker.sock"/>
<option name="hostPath" value="/var/run/docker.sock"/>
<option name="readOnly" value="true"/>
</DockerVolumeBindingImpl>
</list>
</option>
</settings>
</deployment>
<method v="2"/>
</configuration>
<configuration default="false" name="Dockerfile" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="orenlab/pytmbot:latest"/>
<option name="buildCliOptions" value="--target self_build"/>
<option name="command" value="--log-level DEBUG --mode dev"/>
<option name="containerName" value="pytmbot"/>
<option name="commandLineOptions" value=""/>
<option name="showCommandPreview" value="true"/>
<option name="sourceFilePath" value="Dockerfile"/>
<option name="volumeBindings">
<list>
<DockerVolumeBindingImpl>
<option name="containerPath" value="/var/run/docker.sock"/>
<option name="hostPath" value="/var/run/docker.sock"/>
<option name="readOnly" value="true"/>
</DockerVolumeBindingImpl>
</list>
</option>
</settings>
</deployment>
<method v="2"/>
</configuration>
</component>
1 change: 1 addition & 0 deletions docs/influxdb_host_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ sudo nano /etc/nginx/sites-available/influxdb
```

Add the following configuration:

```bash
server {
listen 80;
Expand Down
988 changes: 494 additions & 494 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pytmbot/adapters/docker/containers_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
from docker.errors import APIError, NotFound

from pytmbot.adapters.docker._adapter import DockerAdapter
from pytmbot.globals import settings
from pytmbot.logs import bot_logger
from pytmbot.utils.utilities import set_naturaltime
from pytmbot.globals import settings


def __fetch_containers_list() -> List[str]:
Expand Down
Loading

0 comments on commit c1ac63e

Please sign in to comment.