-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d091df0
Showing
56 changed files
with
23,636 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM ruby:3.2.5-bookworm | ||
|
||
LABEL version="0.1" | ||
LABEL maintainer="[email protected]" | ||
LABEL description="sotmjp2024 build environment" | ||
|
||
RUN apt-get -y update && apt-get -y full-upgrade && \ | ||
apt-get -y --no-install-recommends install locales build-essential git && \ | ||
apt-get -y autoremove && apt-get -y clean && rm -rf /var/lib/apt/lists/* | ||
|
||
ARG UID=1000 | ||
ARG GID=1000 | ||
ARG USER_LOCALE=ja_JP.UTF-8 | ||
ARG GEM=/usr/local/gem | ||
|
||
RUN sed -i -e "s/^# \(${USER_LOCALE}\)/\1/g" /etc/locale.gen && \ | ||
echo "LANG=${USER_LOCALE}" > /etc/default/locale && \ | ||
dpkg-reconfigure --frontend=noninteractive locales && \ | ||
update-locale LANG=${USER_LOCALE} && \ | ||
groupadd -g ${GID} docker && \ | ||
useradd -u ${UID} -g ${GID} -s /bin/bash -m docker && \ | ||
gpasswd -a docker docker && \ | ||
mkdir -p ${GEM} && \ | ||
chown ${UID}:${GID} ${GEM} | ||
|
||
ENV LANG ${USER_LOCALE} | ||
ENV LANGUAGE ja | ||
ENV GEM_HOME ${GEM} | ||
|
||
USER ${UID} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/docker-existing-dockerfile | ||
{ | ||
"name": "sotmjp2024", | ||
"build": { | ||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. | ||
"dockerfile": "Dockerfile", | ||
// Sets the run context to one level up instead of the .devcontainer folder. | ||
"context": ".." | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-vscode.live-server", | ||
"michelemelluso.code-beautifier", | ||
"ecmel.vscode-html-css", | ||
"kargware.vscode-extension-jekyll-kw", | ||
"wingrunr21.vscode-ruby", | ||
"davidanson.vscode-markdownlint" | ||
] | ||
} | ||
}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [4000], | ||
|
||
// Uncomment the next line to run commands after the container is created - for example installing curl. | ||
// "postCreateCommand": "apt-get update && apt-get install -y curl", | ||
"postCreateCommand": "bundle install", | ||
|
||
// Uncomment when using a ptrace-based debugger like C++, Go, and Rust | ||
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], | ||
|
||
// Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker. | ||
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ], | ||
|
||
// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "docker" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Ruby | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.2.5 | ||
- name: Build and update stateofthemap.jp | ||
run: | | ||
gem install bundler | ||
bundle install --jobs 4 --retry 3 | ||
bundle exec jekyll build -b 2024 | ||
rm -rf ../stateothemap.master | ||
git clone https://[email protected]/osmfj/stateofthemap ../stateofthemap.master | ||
mkdir -p ../stateofthemap.master/2024/ | ||
cp -R 2024/* ../stateofthemap.master/2024/ | ||
cd ../stateofthemap.master | ||
git config user.email [email protected] | ||
git config user.name "OSMFJ automated builder" | ||
git add -A 2024 | ||
git commit -m "Update from github ci sotmjp2024/${{ github.sha }}" | ||
git push --quiet origin master > /dev/null 2>&1 | ||
env: | ||
gh_token: ${{ secrets.GH_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
_site/* | ||
2024/* | ||
.ruby-version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
// IntelliSense を使用して利用可能な属性を学べます。 | ||
// 既存の属性の説明をホバーして表示します。 | ||
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "Launch Chrome against localhost", | ||
"url": "http://localhost:4000", | ||
"webRoot": "${workspaceFolder}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source 'https://rubygems.org' | ||
gem "github-pages", group: :jekyll_plugins | ||
gem "webrick" |
Oops, something went wrong.