-
Notifications
You must be signed in to change notification settings - Fork 643
Add additional documentation #8
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
Conversation
#### VSCode Tasks | ||
You can make tasks for pushing and pull with rclone.<br> | ||
1. Create a tasks.json file in the deploy-container folder with these contents | ||
```json5 | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "push_remote", | ||
"type": "shell", | ||
"command": "sh /home/coder/push_remote.sh", | ||
"presentation": { | ||
"reveal": "always", | ||
}, | ||
"problemMatcher": [], | ||
"options": { | ||
"statusbar": { | ||
"label": "$(repo-push) push" | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "pull_remote", | ||
"type": "shell", | ||
"command": "sh /home/coder/pull_remote.sh", | ||
"presentation": { | ||
"reveal": "always", | ||
}, | ||
"problemMatcher": [], | ||
"options": { | ||
"statusbar": { | ||
"label": "$(repo-pull) pull" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
``` | ||
2. Add this command to the Dockerfile | ||
```Dockerfile | ||
# Apply VSCode tasks | ||
COPY deploy-container/tasks.json /home/coder/.local/share/code-server/User/tasks.json | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to add this by default into the Dockerfile for those who use rclone. :)
guides/configuring_environment.md
Outdated
If you change the directory and now code-server wont work, or if you are getting errors containg the starting directory that say it doesnt exist, you can add the following command into the Dockerfile to create the starting directory | ||
```Dockerfile | ||
# Create starting directory | ||
# Should be the same as $START_DIR in entrypoint.sh | ||
RUN mkdir /home/coder/files | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm working on adding this as an option so the user doesn't have to do this
Having trouble with my Railway environment, but I'll be able to finish this as soon as it is resolved. |
Thank you for sharing how this was done and exposing some errors in deploy-code-server! I have added all of these things as official features of the image, so I do not think this doc will be necessary. Please let me know if I am missing anything. I added the HASHED_PASSWORD documentation, so I am not sure if other things should be covered. Moved to ➡️ #12 |
I added in information based on errors I got while deploying and using code-server.

Also added information on how to configure these buttons to push and pull from the rclone remote.