GithubHelp home page GithubHelp logo

docker-fundamentals's Introduction

Initial Users

The database creation logic above will create the following users:

Setup Notes (Old Way)

Preparing Your Workstation for Containers

SSL With Docker Compose and nginx as Reverse Proxy

https://gist.github.com/dahlsailrunner/679e6dec5fd769f30bce90447ae80081

Local Kubernetes Setup

Just use the Docker Desktop Kubernetes instance (enable it in Settings within Docker Desktop).

Then here are some handy notes: https://gist.github.com/dahlsailrunner/1a47b0e38f6e3ba64d4d61835c73b7e2

Excluding Health Checks from Serilog Request Logging

Great blog post by Andrew Lock on this very topic: https://andrewlock.net/using-serilog-aspnetcore-in-asp-net-core-3-excluding-health-check-endpoints-from-serilog-request-logging/

docker-fundamentals's People

Contributors

dahlsailrunner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-fundamentals's Issues

Solution not working

Hi

Swagger is not working please post your appsettings.json and startup.cs for all 3 projects.

PersistedGrantDbContext database migration problem

I got course Fundamentals of Docker and Kubernetes for .NET Developers at pluralsight.I am trying to run project but get an error on migration. The error message in each try mentioned below.
{"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"}

dbConnection => Server=globosql;Database=GlobomanticsIdSrv;User Id=sa;Password=Sqlc0ntainersFTW!;MultipleActiveResultSets=true

In last try i got StackOferflowException. I attach an error also. Need your help :)

StackOverflowExcetion

bin/bash does not exist

Hi Erik

This has been a really great course for me. I'll probably end up watching it several more times. I am, however, having one problem that I lack enough experience in Linux to solve. I'm getting this error when trying to run the sql stuff

/usr/bin/env: 'bash\r': No such file or directory

This is during this command in the sql.Dockerfile

CMD ["/bin/bash", "entrypoint.sh"]

I'm sure this is something easy but I'm stumped. Can you help? I do see that in actual fact that folder and file (bin & bash) do exist. But docker thinks not I guess.

Solution doesn't work

Hi, coming from pluralsight.

When launching the multiple projects:

  • API page doesn't load the swagger documentation page, even by adding /index.html (HTTP ERROR 404).
  • The identity server page doesn't load (keeps loading...).
  • The website starts, but clicking on any link (including sign-in) redirects to an error page (HTTP ERROR 500).

As you suggest in the other issue, nothing is logged on the console or on the output window.

seq log empty in kubernetes

Hi Erik, thanks for the great course, one of the bests on pluralsight in my view.
I try to follow it carefully to develop my own project and there is still one problem I cannot solve.
Seq log works perfect in docker env. but in kubernetes is empty all the time. I spent much time trying to solve it but no success. Have you got any clue what could be a possible reason for this? Or how I could invastigat it?

Nginx Issue

Hi Erik, thanks for the great course, one of the bests on Pluralsight in my view.
I try to follow it carefully to develop my own project and there is still one problem I cannot solve.
When running project from docker-compose & past URL "http://id-local.globomantics.com:5200" it doesn't work & display a message
"This page isn’t working"

Docker Compose :

version: '3.4'

services:
  reverseproxy:
    build:
      context: .
      dockerfile: nginx/nginx.Dockerfile
    depends_on:
      - globomantics.identityserver
    ports:
      - "5200:5100"

  globomantics.identityserver:
    image: ${DOCKER_REGISTRY-}globomanticsidentityserver
    build:
      context: .
      dockerfile: Globomantics.IdentityServer/Dockerfile
    environment:
      - ASPNETCORE_URLS=http://*:5000
    ports:
      - "5000:5000"

nginx.local.conf:

## learn more about nginx reverse proxy configuration here:
## https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/
worker_processes 1;
events { worker_connections 1024; }

http {
    sendfile on;
    large_client_header_buffers 4 32k;

    upstream identity {
        server globomantics.identityserver:5000;
    }
    
    server {        
        listen 5001;
        
        server_name id-local.globomantics.com;        
        
        location / {
            proxy_pass         http://identity;
            proxy_redirect     off;
            proxy_http_version 1.1;
            proxy_cache_bypass $http_upgrade;
            proxy_set_header   Upgrade $http_upgrade;
            proxy_set_header   Connection keep-alive;
            proxy_set_header   Host $host;
            proxy_set_header   X-Real-IP $remote_addr;
            proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header   X-Forwarded-Proto $scheme;
            proxy_set_header   X-Forwarded-Host $server_name;
            proxy_buffer_size           128k;
            proxy_buffers               4 256k;
            proxy_busy_buffers_size     256k;
        }
    }   
}

hosts

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#	127.0.0.1       localhost
#	::1             localhost

127.0.0.1 id-local.globomantics.com

# BEGIN section for OpenVPN Client SSL sites
127.94.0.1	client.openvpn.net
# END section for OpenVPN Client SSL sites
# Added by Docker Desktop
169.254.11.87 host.docker.internal
169.254.11.87 gateway.docker.internal
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section

image

Separate branch for pre docker implemetation

Hi,

I am referring pluralsight course. After cloning main branch, getting errors because this is final version of code with docker implementation.
Would be helpful if you could provide section-wise branch. I am referring section 2 and not able to fix issues.

Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.