Skip to content

Instantly share code, notes, and snippets.

@kohnakagawa
Last active December 29, 2018 23:29
Show Gist options
  • Save kohnakagawa/b5d771fca26bca5d5fa6ae243d9054a4 to your computer and use it in GitHub Desktop.
Save kohnakagawa/b5d771fca26bca5d5fa6ae243d9054a4 to your computer and use it in GitHub Desktop.
Drone CI server docker-compose.yml
version: '2'
services:
drone-server:
image: drone/drone:1.0.0-rc.3
ports:
- 8888:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./drone:/var/lib/drone/
restart: always
environment:
- DRONE_GITHUB_SERVER=${DRONE_GITHUB_SERVER}
- DRONE_GITHUB_CLIENT_ID=${DRONE_GITHUB_CLIENT_ID}
- DRONE_GITHUB_CLIENT_SECRET=${DRONE_GITHUB_CLIENT_SECRET}
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_SERVER_HOST=${DRONE_SERVER_HOST}
- DRONE_SERVER_PROTO=${DRONE_SERVER_PROTO}
- DRONE_TLS_AUTOCERT=true
docker run --volume=//./pipe/docker_engine://./pipe/docker_engine --env=DRONE_RPC_SERVER=${DRONE_RPC_SERVER} --env=DRONE_RPC_SECRET=${DRONE_RPC_SECRET} --env=DRONE_RUNNER_CAPACITY=2 --restart=always --detach=true drone/agent:1.0.0-rc.3-windows-1803
@kohnakagawa
Copy link
Author

Visual Studio との連携に関しての調査結果

Visual Studio での Build に際して

  • Windows SDKは必要なversion分をすべてインストールする必要がある
  • vs_buildtools を使い、必要なもののみを追加で入れる
  • 以下はその一例
C:\\Downloads\\vs_buildtools.exe --add Microsoft.VisualStudio.Workload.MSBuildTools -add Microsoft.VisualStudio.Component.Windows10SDK.17134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment