Skip to content

Commit

Permalink
Container spec
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Oct 9, 2023
1 parent 7502aac commit 281f763
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ RUN pip install --upgrade pip
COPY . /kreacher/
WORKDIR /kreacher/
RUN make install
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
RUN rm -rf google-chrome-stable_current_amd64.deb; apt-get update
CMD ["bash", "webdriver.sh"]
ENTRYPOINT ["make", "start"]
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.PHONY: install

run-containers:
docker-compose up -d --remove-orphans
docker:
docker-compose up -d --build --remove-orphans

remove-containers:
docker-down:
docker-compose down --volumes

install:
Expand Down
3 changes: 1 addition & 2 deletions bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@
# ------------------------------------------------------------------------------

engine = db.create_engine(
f"postgresql://{_POSTGRES_USER}:{_POSTGRES_PASSWORD}@{_POSTGRES_HOST}:{_POSTGRES_PORT}/{_POSTGRES_DB}",
echo=True,
f"postgresql://{_POSTGRES_USER}:{_POSTGRES_PASSWORD}@{_POSTGRES_HOST}:{_POSTGRES_PORT}/{_POSTGRES_DB}"
)
conn = engine.connect()
db_metadata = db.MetaData()
Expand Down
5 changes: 5 additions & 0 deletions webdriver.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
rm -rf google-chrome-stable_current_amd64.deb

0 comments on commit 281f763

Please sign in to comment.