Category : yaml

I’ve set up a project for the first time to use docker-compose. For my appsettings.json in the project I am referencing a non docker hosted mssql db which and I an running the project without of docker everything works fine. When I run from the commandline docker-compose up –build -d the environment variables override the ..

Read more

I created a .net5 C# console app from template. Then added docker-compose by Add -> container orchestration support -> docker-compose. Generated Dockerfile FROM mcr.microsoft.com/dotnet/runtime:5.0 AS base WORKDIR /app FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build WORKDIR /src COPY ["ConsoleApp1/ConsoleApp1.csproj", "ConsoleApp1/"] RUN dotnet restore "ConsoleApp1/ConsoleApp1.csproj" COPY . . WORKDIR "/src/ConsoleApp1" RUN dotnet build "ConsoleApp1.csproj" -c Release -o /app/build FROM ..

Read more

I encountered a problem when running gitlab-runner exec docker … for a CI stage that has a section with variables containing ports. REDIS_HOST: redis REDIS_PORT: 6379 DB_HOST: postgres DB_USER: $MYSQL_USER DB_PORT: 5432 DB_SSL: "no" DB_PASSWORD: $MYSQL_PASSWORD DB_DATABASE: $MYSQL_DB The error said FATAL: invalid value for variable "REDIS_PORT". The solution is to simply use quotes around ..

Read more

I wanted to test out google cloud build to run unit tests for my application but I’m having trouble installing dependencies. For a buildconfig that looks like this, – name: ubuntu args: – apt-get – update; – apt-get – install – ‘-y’ – curl I get the following output. E: The update command takes no ..

Read more

Background: I’ve setup up a standalone Pulsar locally and used Pulsar’s python api docs to execute a simple consumer and producer modules. Problem: Transfer basic workflow into docker-compose.yaml Setup up standalone Pulsar locally. Install requirements.txt with needed for consumer.py and producer.py modules Run consumer.py Run producer.py What I’ve done so far: I’ve figured out how ..

Read more

I have a ini style file with docker names, users and versions: sourcefile.txt: APP1_IMAGE=register:5000/app1:2.1-b4 APP2_IMAGE=register:4000/app2:3.8-b10 REGISTRY_URL=register.local USER=%user% Now i want to source the file and use the definitions as variables in other roles. What i tried: I can only print the file and not us it, only echoing the file. role .yml file vars: sourceinput: ..

Read more

my prometheus.yml global: scrape_interval: 15s evaluation_interval: 15s scrape_configs: – job_name: prometheus static_configs: – targets: [‘localhost:9090’] – job_name: golang metrics_path: /prometheus static_configs: – targets: – localhost:9000 Now, I want to pass Host name dynamically, instead of using localhost:9000 and localhost:9090 My docker-compose.yml uses this prometheus.yml as shown below: prometheus: image: prom/prometheus:v2.24.0 volumes: – ./prometheus/:/etc/prometheus/ – prometheus_data:/prometheus ..

Read more