Skip to content

Instantly share code, notes, and snippets.

FROM idempiereofficial/idempiere:9
# JPiere9のインストールパッケージ
ENV JPIERE_BUILD https://osdn.net/frs/redir.php?m=nchc&f=jpiere%2F77250%2FJPiereServer9.Linux.x86_64.zip
# JPiere9のダンプファイル
ENV JPIERE_DUMPFILE https://osdn.net/frs/redir.php?m=rwthaachen&f=jpiere%2F77250%2FExpDat.jar
# JPiere9のインストールパッケージをダウンロードして既存のiDempiereと置き換える
RUN wget -q --no-check-certificate "$JPIERE_BUILD" -O /tmp/JPiereServer9.Linux.x86_64.zip && \
echo "Hash: $(md5sum /tmp/JPiereServer9.Linux.x86_64.zip)" > "$IDEMPIERE_HOME/MD5SUMS" && \
# ビルドステージ
FROM ubuntu:14.04 as build
# ビルドに必要なもの
ENV BUILD_DEPENDENCIES curl make patch
RUN apt update && apt install -y $BUILD_DEPENDENCIES && rm -r /var/lib/apt/lists/*
ENV SOURCE_DIR /usr/local/src
# Apacheビルド
ENV APACHE_BUILD_DEPENDENCIES libapr1-dev libaprutil1-dev
@mistymagich
mistymagich / conventional-commits.md
Last active October 6, 2022 09:10 — forked from minop1205/conventional-commits.md
コミットメッセージ規約
function doPost(e: GoogleAppsScript.Events.DoPost): void {
// Chatwork APIトークン
const token = "<Chatwork APIトークン>";
// 通知先ルームID
const room_id = "<Chatwork ルームID>";
// チャットワークAPI
const client = ChatWorkClient.factory({ token: token });
// 通知内容データ
@mistymagich
mistymagich / GmailToChatwork.gs
Last active October 4, 2021 08:09
Gmailに来たメールをChatworkに通知する
const DROPBOX_TOKEN =
PropertiesService.getScriptProperties().getProperty("DROPBOX_TOKEN");
const CHATWORK_TOKEN =
PropertiesService.getScriptProperties().getProperty("CHATWORK_TOKEN");
const ROOM_ID = PropertiesService.getScriptProperties().getProperty("ROOM_ID");
// チャットワークへ送信
function sendChatwork_(record) {
const [title, date, from, subject, plainBody, id, shareURLs] = record;
FROM httpd:2.4
# prepare
RUN apt-get update
RUN apt-get -y install ruby wget git
# install gyazo
RUN install -d -m 755 -g daemon -o daemon /usr/local/apache2/htdocs/data
RUN install -d -m 755 -g daemon -o daemon /usr/local/apache2/htdocs/db
RUN wget -O /usr/local/apache2/htdocs/upload.cgi https://raw.githubusercontent.com/gyazo/Gyazo/master/Server/upload.cgi
@mistymagich
mistymagich / docker-compose.yml
Last active September 1, 2015 06:50
Sample to running a custom SQL in "Docker Official MySQL Image"
web:
image: corbinu/docker-phpmyadmin
ports:
- "80:80"
links:
- mysql:mysql
environment:
MYSQL_USERNAME: root
mysql:
FROM ubuntu
RUN apt-get update
RUN apt-get install -y git curl build-essential
RUN apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
ENV HOME /root
ENV ANYENV_HOME $HOME/.anyenv
ENV ANYENV_ENV $ANYENV_HOME/envs
RUN git clone https://github.com/riywo/anyenv $ANYENV_HOME
SERVICE_ACCOUNT_EMAIL = '<service_account_email>'
SERVICE_ACCOUNT_KEY_FILE = __dirname + '/googleapi-privatekey.pem'
google = require 'googleapis'
moment = require 'moment'
year=2015
month=3 # 月は0始まり (3=4月)
m = moment {'year': year, 'month': month}
Sample
======
- test1
- test2