diff --git a/docker/Dockerfile.server.linux.amd64 b/docker/Dockerfile.server.linux.amd64 index fbab5049..a8567ac3 100644 --- a/docker/Dockerfile.server.linux.amd64 +++ b/docker/Dockerfile.server.linux.amd64 @@ -15,6 +15,8 @@ ENV DRONE_RUNNER_OS=linux ENV DRONE_RUNNER_ARCH=amd64 ENV DRONE_SERVER_PORT=:80 ENV DRONE_SERVER_HOST=localhost +ENV DRONE_DATADOG_ENABLED=true +ENV DRONE_DATADOG_ENDPOINT=https://stats.drone.ci/api/v1/series COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ diff --git a/docker/Dockerfile.server.linux.arm b/docker/Dockerfile.server.linux.arm index e577b602..1bf4481c 100644 --- a/docker/Dockerfile.server.linux.arm +++ b/docker/Dockerfile.server.linux.arm @@ -15,6 +15,8 @@ ENV DRONE_RUNNER_OS=linux ENV DRONE_RUNNER_ARCH=arm ENV DRONE_SERVER_PORT=:80 ENV DRONE_SERVER_HOST=localhost +ENV DRONE_DATADOG_ENABLED=true +ENV DRONE_DATADOG_ENDPOINT=https://stats.drone.ci/api/v1/series COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ diff --git a/docker/Dockerfile.server.linux.arm64 b/docker/Dockerfile.server.linux.arm64 index 35264c30..5415a8c2 100644 --- a/docker/Dockerfile.server.linux.arm64 +++ b/docker/Dockerfile.server.linux.arm64 @@ -15,6 +15,8 @@ ENV DRONE_RUNNER_OS=linux ENV DRONE_RUNNER_ARCH=arm64 ENV DRONE_SERVER_PORT=:80 ENV DRONE_SERVER_HOST=localhost +ENV DRONE_DATADOG_ENABLED=true +ENV DRONE_DATADOG_ENDPOINT=https://stats.drone.ci/api/v1/series COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ diff --git a/handler/api/users/create.go b/handler/api/users/create.go index edec7f36..b10f4291 100644 --- a/handler/api/users/create.go +++ b/handler/api/users/create.go @@ -1,6 +1,16 @@ -// Copyright 2019 Drone.IO Inc. All rights reserved. -// Use of this source code is governed by the Drone Non-Commercial License -// that can be found in the LICENSE file. +// Copyright 2019 Drone IO, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package users diff --git a/handler/api/users/delete.go b/handler/api/users/delete.go index 571411eb..47c9d253 100644 --- a/handler/api/users/delete.go +++ b/handler/api/users/delete.go @@ -1,15 +1,25 @@ -// Copyright 2019 Drone.IO Inc. All rights reserved. -// Use of this source code is governed by the Drone Non-Commercial License -// that can be found in the LICENSE file. +// Copyright 2019 Drone IO, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package users import ( "net/http" + "github.com/drone/drone/core" "github.com/drone/drone/handler/api/render" "github.com/drone/drone/logger" - "github.com/drone/drone/core" "github.com/go-chi/chi" ) diff --git a/handler/api/users/find.go b/handler/api/users/find.go index 2be9b657..e82dc4f3 100644 --- a/handler/api/users/find.go +++ b/handler/api/users/find.go @@ -1,15 +1,25 @@ -// Copyright 2019 Drone.IO Inc. All rights reserved. -// Use of this source code is governed by the Drone Non-Commercial License -// that can be found in the LICENSE file. +// Copyright 2019 Drone IO, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package users import ( "net/http" + "github.com/drone/drone/core" "github.com/drone/drone/handler/api/render" "github.com/drone/drone/logger" - "github.com/drone/drone/core" "github.com/go-chi/chi" ) diff --git a/handler/api/users/list.go b/handler/api/users/list.go index 39ee1812..b2af9372 100644 --- a/handler/api/users/list.go +++ b/handler/api/users/list.go @@ -1,15 +1,25 @@ -// Copyright 2019 Drone.IO Inc. All rights reserved. -// Use of this source code is governed by the Drone Non-Commercial License -// that can be found in the LICENSE file. +// Copyright 2019 Drone IO, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package users import ( "net/http" + "github.com/drone/drone/core" "github.com/drone/drone/handler/api/render" "github.com/drone/drone/logger" - "github.com/drone/drone/core" ) // HandleList returns an http.HandlerFunc that writes a json-encoded diff --git a/handler/api/users/update.go b/handler/api/users/update.go index 3fc54622..67a23a90 100644 --- a/handler/api/users/update.go +++ b/handler/api/users/update.go @@ -1,6 +1,16 @@ -// Copyright 2019 Drone.IO Inc. All rights reserved. -// Use of this source code is governed by the Drone Non-Commercial License -// that can be found in the LICENSE file. +// Copyright 2019 Drone IO, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package users @@ -8,9 +18,9 @@ import ( "encoding/json" "net/http" + "github.com/drone/drone/core" "github.com/drone/drone/handler/api/render" "github.com/drone/drone/logger" - "github.com/drone/drone/core" "github.com/go-chi/chi" )