Skip to content

Commit

Permalink
Merge pull request #441 from isucon/infra/420_move-jiaapi-mock
Browse files Browse the repository at this point in the history
feat(infra): jiaapi-mock を extra 以下に移動
  • Loading branch information
ShotaKitazawa authored Jul 20, 2021
2 parents 2b3175d + 202f03e commit 9946204
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* bench/key/ec256-private.pem
* bench/key/ec256-public.pem
* webapp/ec256-public.pem (bench/key/ec256-public.pemのコピー)
* webapp/jiaapi_mock/cmd/standalone/ec256-private.pem (bench/key/ec256-private.pemのコピー)
* extra/jiaapi-mock/ec256-private.pem (bench/key/ec256-private.pemのコピー)

となっています。

Expand Down
2 changes: 1 addition & 1 deletion development/docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ services:
ports:
- "5000:5000"
volumes:
- "../webapp/jiaapi_mock:/jiaapi"
- "../extra/jiaapi-mock:/jiaapi"
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net"
"net/http"

"github.com/isucon/isucon11-qualify/jiaapi_mock/model"
"github.com/isucon/isucon11-qualify/jiaapi-mock/model"
"github.com/labstack/echo/v4"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion webapp/jiaapi_mock/go.mod → extra/jiaapi-mock/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/isucon/isucon11-qualify/jiaapi_mock
module github.com/isucon/isucon11-qualify/jiaapi-mock

go 1.16

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion webapp/jiaapi_mock/main.go → extra/jiaapi-mock/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"os"

"github.com/isucon/isucon11-qualify/jiaapi_mock/controller"
"github.com/isucon/isucon11-qualify/jiaapi-mock/controller"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/labstack/gommon/log"
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions provisioning/ansible/roles/contestant/tasks/jiaapi_mock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: "roles/contestant/tasks/jiaapi_mock: Build jiaapi-mock"
become_user: isucon
args:
chdir: /tmp/isucon11-qualify/webapp/jiaapi_mock
chdir: /tmp/isucon11-qualify/extra/jiaapi-mock
environment:
PATH: "/home/isucon/local/go/bin:{{ ansible_env.PATH }}"
command: make
Expand All @@ -11,7 +11,7 @@
become_user: root
copy:
remote_src: yes
src: /tmp/isucon11-qualify/webapp/jiaapi_mock/jiaapi-mock
src: /tmp/isucon11-qualify/extra/jiaapi-mock/jiaapi-mock
dest: /usr/local/bin/
owner: "root"
group: "root"
Expand All @@ -28,7 +28,7 @@
with_items:
- etc/systemd/system/jiaapi-mock.service

- name: "roles/contestant/tasks/jiaapi_mock: Disable jiaapi-mock.service"
- name: "roles/contestant/tasks/jiaapi_mock: Enable jiaapi-mock.service"
become_user: root
systemd:
daemon_reload: "yes"
Expand Down

0 comments on commit 9946204

Please sign in to comment.