Skip to content

Commit

Permalink
update dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
kotet committed Sep 22, 2023
1 parent 6a32162 commit 087fbc7
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 34 deletions.
2 changes: 2 additions & 0 deletions .bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
BUNDLE_PATH: "vendor/bundle"
8 changes: 4 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:20.04
FROM ubuntu:22.04

RUN apt update && apt -y install \
RUN apt-get update && apt-get -y install --no-install-recommends \
git \
gcc \
g++ \
Expand All @@ -9,7 +9,7 @@ RUN apt update && apt -y install \
ruby \
ruby-dev

RUN gem install jekyll bundler github-pages
RUN gem install bundler

ARG USERNAME=vscode
ARG USER_UID=1000
Expand All @@ -19,4 +19,4 @@ ARG USER_GID=$USER_UID
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME

USER $USERNAME
USER $USERNAME
46 changes: 28 additions & 18 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,38 @@
"dockerfile": "Dockerfile",
"context": ".",
},
"settings": {
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash"
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash"
},
},
"terminal.integrated.defaultProfile.linux": "bash",
},
},
"terminal.integrated.defaultProfile.linux": "bash",
"extensions": [
"ms-azuretools.vscode-docker",
"ms-vscode.wordcount",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"streetsidesoftware.code-spell-checker",
"znck.grammarly",
"redhat.fabric8-analytics",
"redhat.vscode-yaml",
"bierner.github-markdown-preview",
"github.vscode-github-actions"
],
}
},
"extensions": [
"ms-azuretools.vscode-docker",
"ms-vscode.wordcount",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"streetsidesoftware.code-spell-checker",
"znck.grammarly",
"redhat.fabric8-analytics",
"redhat.vscode-yaml",
"bierner.github-markdown-preview"
],
"updateRemoteUserUID": true,
"remoteUser": "vscode",
"forwardPorts": [
4000
],
}
"containerEnv": {
"LC_ALL": "C.UTF-8",
"LANG": "C.UTF-8",
"LANGUAGE": "C.UTF-8"
}
}
15 changes: 15 additions & 0 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Building Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@v2
- name: "Build with Jekyll"
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: "Show size of _site/"
run: du -sh _site
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
_site
.sass-cache
.jekyll-metadata
Gemfile.lock
Gemfile.lock
vendor/
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
source 'https://rubygems.org'
gem 'github-pages'
gem "github-pages", "~> 228", group: :jekyll_plugins
23 changes: 13 additions & 10 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,22 @@
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.

encoding: utf-8

# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: Your awesome title
baseurl: "" # For github pages
description: >- # You can edit footer in _includes/footer.md
description: >- # You can edit footer in _includes/footer.md
This is an ultralight demo.
google_analytics: # Enter your tracking ID. Not available on IPFS

twitter_cards: off # Not available on IPFS. /assets/logo.png required
twitter_username:
twitter_username:

# Build settings
markdown: kramdown
Expand All @@ -31,11 +33,12 @@ sass:
# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
# exclude:
# - Gemfile
# - Gemfile.lock
# - node_modules
# - vendor/bundle/
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/
exclude:
- Gemfile
- Gemfile.lock
- node_modules
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/
- README.md

0 comments on commit 087fbc7

Please sign in to comment.