-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 0.7.0 * Adds `urls` package. * Adds type information to endpoints. * `bc3 configure` now prompts user to select an account ID if they belong to multiple Basecamp3 accounts. * Changes Docker container to use `slim` instead of `alpine` * Python 2 imports wrapped in try/catch are replaced with `six.moves` instead.
- Loading branch information
Showing
62 changed files
with
3,167 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,38 @@ | ||
FROM python:3.9-alpine | ||
FROM python:3.9-slim | ||
|
||
ARG USER_ID=2000 | ||
ARG GROUP_ID="${USER_ID}" | ||
ARG USERNAME=basecampy | ||
ARG USER_HOME=/bc3 | ||
ARG WORKDIR=${USER_HOME} | ||
ARG WORKDIR=/bc3 | ||
ARG HOME_DIR="/home/${USERNAME}" | ||
|
||
ENV WORKDIR="${WORKDIR}" | ||
ENV HOME_DIR="${HOME_DIR}" | ||
ENV BC3_OAUTH_BIND_ADDRESS=0.0.0.0 | ||
ENV BC3_CONTAINER=1 | ||
ENV BC3_CONFIG_PATH="/etc/basecamp.conf" | ||
ENV PYTHONPATH="${WORKDIR}" | ||
|
||
COPY requirements.txt . | ||
|
||
RUN pip install -r requirements.txt | ||
|
||
WORKDIR "${WORKDIR}" | ||
|
||
# temporarily switch to this directory to copy our source code into and install | ||
WORKDIR /usr/src/app | ||
COPY . . | ||
|
||
RUN python setup.py install \ | ||
&& addgroup -g "${GROUP_ID}" "${USERNAME}" \ | ||
&& adduser -u "${USER_ID}" -G ${USERNAME} -h "${USER_HOME}" -s /bin/sh -D "${USERNAME}" \ | ||
&& mkdir -p "${WORKDIR}" \ | ||
&& mkdir -p "${USER_HOME}/.config" \ | ||
&& chown -R "${USERNAME}:${USERNAME}" "${WORKDIR}" "${USER_HOME}" | ||
RUN addgroup --gid ${GROUP_ID} "${USERNAME}" \ | ||
&& adduser --home "${HOME_DIR}" --gecos '' --uid "${USER_ID}" --gid "${GROUP_ID}" --disabled-password "${USERNAME}" \ | ||
&& ln -s "${WORKDIR}/bc3" "/usr/local/bin/bc3" \ | ||
&& touch "${BC3_CONFIG_PATH}" \ | ||
&& chown -R "${USERNAME}:${USERNAME}" "${WORKDIR}" "${BC3_CONFIG_PATH}" | ||
|
||
USER ${USERNAME} | ||
WORKDIR ${WORKDIR} | ||
RUN python setup.py install | ||
|
||
# persist this location if you want to keep your | ||
# credentials when recreating the container | ||
VOLUME ["${USER_HOME}/.config"] | ||
USER ${USERNAME} | ||
|
||
# for the bc3 configure command, it must listen on your localhost for | ||
# the redirect URL to receive an authorization token | ||
EXPOSE 33333 | ||
|
||
ENTRYPOINT ["bc3"] | ||
CMD ["--help"] | ||
CMD ["bc3", "--help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.6.1' | ||
__version__ = '0.7.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from .answers import Answers | ||
from .campfire_lines import CampfireLines | ||
from .campfires import Campfires | ||
from .comments import Comments | ||
from .message_boards import MessageBoards | ||
from .message_categories import MessageCategories | ||
from .messages import Messages | ||
from .people import People | ||
from .project_constructions import ProjectConstructions | ||
from .projects import Projects | ||
from .templates import Templates | ||
from .todolist_groups import TodoListGroups | ||
from .todolists import TodoLists | ||
from .todos import Todos | ||
from .todosets import TodoSets |
Oops, something went wrong.