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

Fix failing Dockerfile build #104

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.gitmodules
/test/libs/*
/src/logs/*
/src/logs/*!/Dockerfile
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM ubuntu:22.04
WORKDIR /Taskwarrior-installation
COPY . .
RUN apt-get update && apt-get -y install sudo && apt-get install -y git
RUN apt-get update && apt-get -y install apt-utils && apt-get -y install sudo && apt-get install -y git
RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone
RUN chmod +x tw-install.sh && ./tw-install.sh
RUN chmod +x tw-install.sh && ./tw-install.sh
ARG TASKDDATA
ENV TASKDDATA ${TASKDDATA:-/var/taskd}
ENTRYPOINT taskd server --data ${TASKDDATA}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docker image entrypoint starts the taskd server.
Which was not the case previously.

15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,20 @@ chmod +x tw-uninstall.sh
(Currently) you have to reboot the system before you install it again using the `tw-install.sh` file.

## Docker (not working)
A short headsup, the `docker build .` is currently not working as kindly pointed out [here](https://github.com/HiveMinds/tw-install/issues/102)
### Build
```shell
docker build -t tw-install .
```
### Run container
```shell
docker run \
-p 53589:53589 \
-e TW_USERNAME=First \
-e TW_ORGANISATION=Public \
--name tw-instance \
-d \
tw-install
```

## How to use (for developers)
First install the required submodules with:
Expand Down
2 changes: 2 additions & 0 deletions tw-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ yes | sudo apt install libgnutls28-dev
yes | sudo apt install uuid-dev
yes | sudo apt install cmake
yes | sudo apt install gnutls-bin
yes | sudo apt install cron


# install taskwarrior and add first task
yes | sudo apt install taskwarrior
Expand Down