Compare commits
3 Commits
e66a4f0834
...
1f9c311b6c
Author | SHA1 | Date | |
---|---|---|---|
1f9c311b6c | |||
cf76d23b16 | |||
f55e93d9a2 |
@ -4,7 +4,6 @@ RUN useradd -ms /bin/bash --uid 1000 jekyll
|
||||
RUN mkdir -p -m 0755 /app/jekyll
|
||||
RUN mkdir -p -m 0755 /opt/jekyll
|
||||
COPY ./entrypoint.sh /opt/jekyll
|
||||
VOLUME $PWD/data:/opt/jekyll
|
||||
RUN chmod +x /opt/jekyll/ && \
|
||||
chown -R 1000:1000 /opt/jekyll && \
|
||||
chown -R 1000:1000 /app
|
||||
|
@ -12,4 +12,7 @@ services:
|
||||
- ${WWW_PORT:-4000}:4000
|
||||
volumes:
|
||||
- ./jekyll:/app/jekyll
|
||||
- ./data:/opt/jekyll
|
||||
- jekyll_bundle:/usr/local/bundle
|
||||
|
||||
volumes:
|
||||
jekyll_bundle:
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/bin/bash
|
||||
source /opt/jekyll/.env
|
||||
export AUTHOR_EMAIL=$AUTHOR_EMAIL
|
||||
export BLOG_NAME=$BLOG_NAME
|
||||
export BASE_URL=$BASE_URL
|
||||
@ -16,6 +15,22 @@ export TWITTER_USERNAME=$TWITTER_USERNAME
|
||||
export WWW_PORT=$WWW_PORT
|
||||
export URL=$URL
|
||||
|
||||
printf "🖙 Set values:
|
||||
🖙 Author email: $AUTHOR_EMAIL
|
||||
🖙 Blog name: $BLOG_NAME
|
||||
🖙 Base URL: $BASE_URL
|
||||
🖙 Github username: $GITHUB_USERNAME
|
||||
🖙 Host URL: $HOST_URL
|
||||
🖙 Jekyll environment: $JEKYLL_ENV
|
||||
🖙 Live-reload port: $LIVERELOAD_PORT
|
||||
🖙 Local site files path: $SITE_PATH
|
||||
🖙 Site title: $SITE_TITLE
|
||||
🖙 Current theme: $THEME
|
||||
🖙 Xwitter username: $TWITTER_USERNAME
|
||||
🖙 WWW port: $WWW_PORT
|
||||
🖙 URL: $URL
|
||||
"
|
||||
|
||||
update_config() {
|
||||
for ENV_VAR in 'AUTHOR_EMAIL' 'BASE_URL' 'GITHUB_USERNAME' \
|
||||
'SITE_TITLE' 'THEME' 'TWITTER_USERNAME' 'URL'; do
|
||||
|
Loading…
Reference in New Issue
Block a user