Skip to content

Commit

Permalink
Merge pull request #6 from sonnh-uit/sonnh
Browse files Browse the repository at this point in the history
update docker environment to build project
  • Loading branch information
sonnh-uit authored Aug 20, 2023
2 parents 98f1e92 + 7aa0923 commit f4bf55f
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@

## v1.0.1
### Added
- New version README
- Fix bug numbering table, figure and equation in `thesis.tex`

## v1.1.0
### Added
- Docker environment for build.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Use a base image with the required Linux distribution
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
# Update the system and install LaTeX dependencies
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y texlive-latex-extra texlive-lang-all \
texlive-bibtex-extra biber
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ or

- [Get template in Overleaf](https://www.overleaf.com/latex/templates/hcmuit-thesistemplate/ghqpckjqdxfz) to your project.
#### Building from source
##### Buid from local machine Ubuntu
1. Clone project from github
```
git clone https://github.com/sonnh-uit/HCMUIT_thesistemplate.git
Expand All @@ -86,6 +87,14 @@ or
```
make build
```
##### Buid from docker
To easy, I update `Dockerfile` and `docker-compose` to build this project on version 1.1.0. So, you just [INSTALL DOCKER](https://docs.docker.com/engine/install/) and build this thesis with
```
sudo docker-compose up
```
<!-- USAGE EXAMPLES -->
<!-- ## Usage -->
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3'
services:
thesis-build:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
working_dir: /app
command: ["pdflatex", "thesis.tex"]
Binary file modified thesis.pdf
Binary file not shown.

0 comments on commit f4bf55f

Please sign in to comment.