You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I imagine there may be some tips and tricks relevant to those who are interested in contributing. I experimented a bit the other day, and wrote up this script for myself, to do some local dev work:
#!/bin/bash# root dir, next to Dockerfile
DEV_TAG="0.0.1"
DEV_NAME="tasks-dev.md"
DEV_REGISTRY="benjaminapetersen"# change to your own name
DEV_IMAGE="${DEV_REGISTRY}/${DEV_NAME}:${DEV_TAG}"
DEV_PORT="8125"
DEV_TITLE="Tasks.md Dev | My Dev Tasks"# stop, delete, clean local file system to avoid a cached image# and also wipe weird configs if dev work writes a messy fileecho"STOPPING ${DEV_NAME}..."
docker stop "$DEV_NAME"echo"DELETING ${DEV_NAME}..."
docker rm "$DEV_NAME"
sleep .5
echo"CLEANING UP DEV..."
rm -rf dev_tasks_files
rm -rf dev_config_files
sleep .5
mkdir dev_tasks_files
mkdir dev_config_files
sleep .5
# rebuild the image in local registryecho"BUILDING ${DEV_IMAGE}..."
docker build -t "${DEV_IMAGE}".
sleep .5
# run it again after a rebuildecho"STARTING ${DEV_IMAGE}..."
docker run -d \
--name "${DEV_NAME}" \
-e PUID=1000 \
-e PGID=1000 \
-e TITLE="${DEV_TITLE}" \
-e BASE_PATH="/tasks.md/" \
-e LOCAL_IMAGES_CLEANUP_INTERVAL=1440 \
-p ${DEV_PORT}:8080 \
-v $PWD/dev_tasks_files/:/tasks/ \
-v $PWD/dev_config_files/:/config/ \
--restart unless-stopped \
"${DEV_IMAGE}"# just some outputecho"Running Task.md...."echo"If killed, can restart without running this script again:"echo" - find the pid of the image"echo" - then run:"echo" docker start <pid>"echo"Visit in browser:"echo" http://localhost:${DEV_PORT}/tasks.md/"echo""echo"View official releases: https://github.com/BaldissaraMatheus/Tasks.md/releases"echo""echo"Running dev version as: ${DEV_IMAGE}"# check the logs immediatelyecho"LOGS FOR ${DEV_NAME}..."
docker logs -f "${DEV_NAME}"
The text was updated successfully, but these errors were encountered:
I imagine there may be some tips and tricks relevant to those who are interested in contributing. I experimented a bit the other day, and wrote up this script for myself, to do some local dev work:
The text was updated successfully, but these errors were encountered: