Skip to content

Commit 5b26895

Browse files
authored
chore: creates a devcontainer for apigeecli #479 (#480)
* chore: creates a devcontainer for apigeecli #479 * chore: add license header #479 * chore: fix license header #479
1 parent e201c25 commit 5b26895

File tree

5 files changed

+88
-0
lines changed

5 files changed

+88
-0
lines changed

.devcontainer/Dockerfile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
FROM mcr.microsoft.com/devcontainers/go:1-1.22-bookworm
16+
17+
ADD ../internal /go/src/apigeecli/internal
18+
ADD ../cmd /go/src/apigeecli/cmd
19+
20+
COPY ../go.mod ../go.sum /go/src/apigeecli/
21+
22+
WORKDIR /go/src/apigeecli
23+
24+
ENV GO111MODULE=on
25+
RUN go mod tidy
26+
RUN go mod download
27+

.github/dependabot.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# To get started with Dependabot version updates, you'll need to specify which
16+
# package ecosystems to update and where the package manifests are located.
17+
# Please see the documentation for more information:
18+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
19+
# https://containers.dev/guide/dependabot
20+
21+
version: 2
22+
updates:
23+
- package-ecosystem: "devcontainers"
24+
directory: "/"
25+
schedule:
26+
interval: weekly

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ remote-service.*
3535
!test/*.zip
3636
!cmd/apigeecli*
3737
!internal/apigeecli*
38+
!.vscode/launch.json

.vscode/launch.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Default debugger for apigeecli",
9+
"type": "go",
10+
"request": "launch",
11+
"mode": "auto",
12+
"program": "./cmd/apigeecli/apigeecli.go",
13+
// please change these args before debugging. do not checkin changes.
14+
"args": [
15+
"apis",
16+
"create"
17+
]
18+
}
19+
]
20+
}

test/petstore-v3.1.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
openapi: 3.1.0
216
info:
317
title: Swagger Petstore - OpenAPI 3.1

0 commit comments

Comments
 (0)