Skip to content

Commit

Permalink
Add header to dockerfiles and shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
renatolfc committed Aug 1, 2024
1 parent ad30f95 commit 597f216
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.


DOCKER_VERSION=24.0.2
VSCODE_HOME=/home/vscode
Expand Down
4 changes: 3 additions & 1 deletion resources/docker/Dockerfile-api_orchestrator
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# syntax=docker/dockerfile:1
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

FROM mcr.microsoft.com/farmai/terravibes/services-base:12380

COPY src /app/src
Expand Down
4 changes: 3 additions & 1 deletion resources/docker/Dockerfile-cache
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# syntax=docker/dockerfile:1
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

FROM mcr.microsoft.com/farmai/terravibes/services-base:12380

COPY src /app/src
Expand Down
4 changes: 3 additions & 1 deletion resources/docker/Dockerfile-dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# syntax=docker/dockerfile:1
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

ARG BASE_IMAGE
FROM $BASE_IMAGE
COPY resources/envs/dev.yaml /tmp/dev.yaml
Expand Down
3 changes: 3 additions & 0 deletions resources/docker/Dockerfile-devcontainer
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

FROM mcr.microsoft.com/farmai/terravibes/worker-base:12380

ARG USERNAME=vscode
Expand Down
4 changes: 3 additions & 1 deletion resources/docker/Dockerfile-services-base
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# syntax=docker/dockerfile:1
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

FROM mcr.microsoft.com/cbl-mariner/base/core:2.0 AS builder


Expand Down
4 changes: 3 additions & 1 deletion resources/docker/Dockerfile-worker
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# syntax=docker/dockerfile:1
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

FROM mcr.microsoft.com/farmai/terravibes/worker-base:12380

COPY src /app/src
Expand Down
4 changes: 3 additions & 1 deletion resources/docker/Dockerfile-worker-base
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# syntax=docker/dockerfile:1
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

FROM mcr.microsoft.com/cbl-mariner/base/core:2.0 AS builder

RUN tdnf update -y || echo "Not updating anything..." && tdnf install -y \
Expand Down
3 changes: 3 additions & 0 deletions resources/vm/setup_farmvibes_ai_vm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.


# Update apt
sudo apt update
Expand Down
3 changes: 3 additions & 0 deletions scripts/local-k8s-diagnostics.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.


PATH=$PATH:~/.config/farmvibes-ai

Expand Down
3 changes: 3 additions & 0 deletions scripts/setup_python_develop_env.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env bash
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.


SCRIPTFILE=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPTFILE")
Expand Down

0 comments on commit 597f216

Please sign in to comment.