Skip to content

Commit 0d36aa0

Browse files
committed
tools(vagrant): add box for building Windows containers
1 parent 0216434 commit 0d36aa0

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

vagrant/windows/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,14 @@ make build
4747
```
4848

4949
to build the binary.
50+
51+
## Building Windows containers
52+
53+
Use the [docker](docker/) machine, as it comes with Docker for Windows installed and configured. After building
54+
the application, you can build a Windows container the following way:
55+
56+
```bash
57+
cp otelcolbuilder/cmd/otelcol-sumo.exe .
58+
make build-push-container-windows-dev PLATFORM=windows/amd64/ltsc2022
59+
docker run public.ecr.aws/sumologic/sumologic-otel-collector-dev:latest-windows-amd64-ltsc2022 --version
60+
```

vagrant/windows/docker/Vagrantfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
common_vagrantfile = "../Vagrantfile.common"
5+
load common_vagrantfile
6+
7+
Vagrant.configure('2') do |config|
8+
config.vm.box = 'gusztavvargadr/docker-windows'
9+
config.vm.host_name = 'docker-windows'
10+
11+
config.vm.provider 'virtualbox' do |vb|
12+
vb.name = 'docker-windows'
13+
end
14+
end

0 commit comments

Comments
 (0)