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

Add Dockerfile for easy installation on local machine #532

Merged
merged 24 commits into from
Jul 10, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update README.md
Co-authored-by: Maruan <[email protected]>
  • Loading branch information
pourmand1376 and alshedivat authored Jun 27, 2022
commit 64a70c67f631c7e26bbd7fc078a645eab818434b
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,25 +124,26 @@ Then you can use Dockerhub prebuilt image to run your website. Note that for the
bin/dockerhub_run.sh
```

##### More Advanced Users
You can also build your own docker image.
<details><summary>(click to expand) <strong>Build your own docker image (more advanced):</strong></summary>

So first, download necessary modules and install them into a docker image called `mywebsite:Dockerfile` (this command will build an image which is used to run your website afterwards. Note that you only need to do this step once. After you have the image, you no longer need to do this anymore):
First, download the necessary modules and install them into a docker image called `mywebsite:Dockerfile` (this command will build an image which is used to run your website afterwards. Note that you only need to do this step once. After you have the image, you no longer need to do this anymore):


```bash
\```bash
bin/docker_build_image.sh
```
\```

Run the website!

```bash
\```bash
bin/docker_run.sh
```
\```

> To change port number, you can edit `docker_run.sh` file.

> In order to change port number, you can change `docker_run.sh` file.
> If you want to update jekyll, install new ruby packages, etc., all you have to do is build the image again using `docker_build_image.sh`! It will download ruby and jekyll and install all ruby packages again from scratch.

> If you want to update jekyll or install new ruby packages or ... , all you have to do is to build the image again using `docker_build_image.sh`! It will download ruby and jekyll and installall ruby packages again.
</details>

#### Local Setup (Legacy mode)
pourmand1376 marked this conversation as resolved.
Show resolved Hide resolved

Expand Down