Skip to content

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

Closed
wants to merge 13 commits into from
Closed

Add additional documentation #8

wants to merge 13 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 11, 2021

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.
vscode-status-bar-task-buttons

@bpmct bpmct self-requested a review March 11, 2021 19:49
Comment on lines +93 to +137
#### 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
```
Copy link
Member

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. :)

Comment on lines 3 to 8
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
```
Copy link
Member

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

@bpmct
Copy link
Member

bpmct commented Mar 12, 2021

Having trouble with my Railway environment, but I'll be able to finish this as soon as it is resolved.

@bpmct
Copy link
Member

bpmct commented Mar 15, 2021

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

@bpmct bpmct closed this Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant