Skip to content

Commit 803cdc5

Browse files
update docker image to use alpine base image (#70)
local usage: $ ./serve.sh
1 parent 893e407 commit 803cdc5

File tree

4 files changed

+16
-150
lines changed

4 files changed

+16
-150
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
args: git submodule update --remote --merge
2121

2222
- name: Build
23-
run: docker run --rm --volume $PWD:/src -w "/src" bwklein/hugo-asciidoctor hugo --minify -v
23+
run: bash build.sh
2424

2525
- name: Deploy
2626
uses: peaceiris/actions-gh-pages@v3

.gitignore

+8-146
Original file line numberDiff line numberDiff line change
@@ -1,147 +1,9 @@
1+
# Hugo
2+
public/
3+
resources/
4+
node_modules/
5+
tech-doc-hugo
6+
static/
7+
8+
# Asciidoctor
19
.asciidoctor/
2-
3-
# -*- mode: gitignore; -*-
4-
*~
5-
\#*\#
6-
/.emacs.desktop
7-
/.emacs.desktop.lock
8-
*.elc
9-
auto-save-list
10-
tramp
11-
.\#*
12-
13-
# Org-mode
14-
.org-id-locations
15-
*_archive
16-
17-
# flymake-mode
18-
*_flymake.*
19-
20-
# eshell files
21-
/eshell/history
22-
/eshell/lastdir
23-
24-
# elpa packages
25-
/elpa/
26-
27-
# reftex files
28-
*.rel
29-
30-
# AUCTeX auto folder
31-
/auto/
32-
33-
# cask packages
34-
.cask/
35-
dist/
36-
37-
# Flycheck
38-
flycheck_*.el
39-
40-
# server auth directory
41-
/server/
42-
43-
# projectiles files
44-
.projectile
45-
46-
# directory configuration
47-
.dir-locals.el
48-
49-
# network security
50-
/network-security.data
51-
52-
# Compiled source #
53-
###################
54-
*.com
55-
*.class
56-
*.dll
57-
*.exe
58-
*.o
59-
*.so
60-
61-
# Packages #
62-
############
63-
# it's better to unpack these files and commit the raw source
64-
# git has its own built in compression methods
65-
*.7z
66-
*.dmg
67-
*.gz
68-
*.iso
69-
*.jar
70-
*.rar
71-
*.tar
72-
*.zip
73-
74-
# Logs and databases #
75-
######################
76-
*.log
77-
*.sql
78-
*.sqlite*
79-
80-
# OS generated files #
81-
######################
82-
.DS_Store
83-
.DS_Store?
84-
._*
85-
.Spotlight-V100
86-
.Trashes
87-
ehthumbs.db
88-
Thumbs.db
89-
*.swp
90-
91-
### Ruby ###
92-
*.gem
93-
*.rbc
94-
/.config
95-
/coverage/
96-
/InstalledFiles
97-
/pkg/
98-
/spec/reports/
99-
/spec/examples.txt
100-
/test/tmp/
101-
/test/version_tmp/
102-
/tmp/
103-
104-
# Used by dotenv library to load environment variables.
105-
# .env
106-
107-
# Ignore Byebug command history file.
108-
.byebug_history
109-
110-
## Specific to RubyMotion:
111-
.dat*
112-
.repl_history
113-
build/
114-
*.bridgesupport
115-
build-iPhoneOS/
116-
build-iPhoneSimulator/
117-
118-
## Specific to RubyMotion (use of CocoaPods):
119-
#
120-
# We recommend against adding the Pods directory to your .gitignore. However
121-
# you should judge for yourself, the pros and cons are mentioned at:
122-
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
123-
# vendor/Pods/
124-
125-
## Documentation cache and generated files:
126-
/.yardoc/
127-
/_yardoc/
128-
/doc/
129-
/rdoc/
130-
131-
## Environment normalization:
132-
/.bundle/
133-
/vendor/bundle
134-
/lib/bundler/man/
135-
136-
# for a library or gem, you might want to ignore these files since the code is
137-
# intended to run in multiple environments; otherwise, check them in:
138-
# Gemfile.lock
139-
# .ruby-version
140-
# .ruby-gemset
141-
142-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
143-
.rvmrc
144-
145-
### Ruby Patch ###
146-
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
147-
# .rubocop-https?--*

build.sh

100644100755
+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/usr/bin/env sh
1+
#!/usr/bin/env bash
22

3-
# export PATH="$PWD/bin:$PATH"
4-
hugo --minify -v
3+
if [ ! -r ./public ]; then
4+
docker run --rm --volume $PWD:/src -w "/src" capsulecorplab/hugo-asciidoctor-plantuml:0.76.5-alpine 'hugo --minify -v --destination public'
5+
fi

serve.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
docker run --rm --volume $PWD:/src -p 1313:1313 -w "/src" capsulecorplab/hugo-asciidoctor-plantuml:0.76.5-alpine 'hugo serve --bind=0.0.0.0 --buildDrafts --disableFastRender --destination public'

0 commit comments

Comments
 (0)