Giter VIP home page Giter VIP logo

docker-fifth-birthday's People

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  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  avatar  avatar  avatar  avatar

Watchers

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

docker-fifth-birthday's Issues

kube-deployment.yml: error converting YAML to JSON: yaml: line 92: mapping values are not allowed in this context

I am using Docker Desktop to run the voting app, I am following the tutorial the link in the command line is deprecated :

kubectl apply -f https://raw.githubusercontent.com/docker/docker-birthday/master/resources/kubernetes-docker-desktop/vote.yaml

So I tried to use the link from this repo :

kubectl apply -f https://github.com/dockersamples/docker-fifth-birthday/blob/master/kubernetes-desktop/kube-deployment.yml

But this error keeps on popping :

error: error parsing https://github.com/dockersamples/docker-fifth-birthday/blob/master/kubernetes-desktop/kube-deployment.yml: error converting YAML to JSON: YAML: line 92: mapping values are not allowed in this context
---
apiVersion: v1
kind: Service
metadata:
  name: result
  labels:
    app: result
spec:
  type: LoadBalancer
  ports:

what am I doing wrong?

Just a thought

It would be nice to have clean up steps after completion of lab to remove all created objects.

movieplex7 application URL

This is related to Modernizing Traditional Java Applications.

As per instruction, I was trying to hit movieplex7 url with 8080 port but got error however it works with designated port i.e. http://ip172-18-0-6-baoohqugera000cf87og.direct.beta-hybrid.play-with-docker.com:30364/movieplex7/faces/client/movies.xhtml

And when I tried to connect to react-client url, pages appears but could not connect to movieplex7 service. I think it might be trying to connect to 8080 port instead of 30364.

Kubernetes on Docker for Windows example needs specific Kubernetes Manifest

I tried to deploy kube-deployment.yml with Kubernetes on Docker for Windows 18.03.0-ce-rc4.
The DB pod is on error :

kubectl logs -f db-6488476b5-25gs9
...
state:
      waiting:
        message: 'Error response from daemon: invalid mode: /var/lib/postgresql/data'
        reason: CreateContainerError

The issue comes from the persistent Volume Claim

kubectl get pv --output=yaml
...
hostPath:
      path: C:\Users\d.maumenee/.docker/Volumes/postgres-pv-claim/pvc-5a21cf61-2957-11e8-a980-00155d4b0118

By default, the volume is mapped on my windows file system but according to docker for windows documentation, it's can rise issues :
If possible, avoid volume mounts from the Windows host, and instead mount on the MobyVM, or use a data volume (named volume) or data container. There are a number of issues with using host-mounted volumes and network paths for database files.
There is already an issue declared on docker/for-win github

I didn't manage to change the behavior of the default storageClass.

To deploy on Docker for Windows I use this work around in the db deployment :

          volumeMounts:
            - name: db-data
              mountPath: /var/lib/postgresql/data
      volumes:
        - name: db-data
          hostPath:
            path: /tmp/postgres-data
            type: DirectoryOrCreate

It works only on single node cluster, but Kubernetes integrate in Docker for Windows is exactly a single node cluster.

See kube-deployment-volume-without-claim.yml in pull request #7

Docker version : 18.03.0-ce-rc4-win57 (16511)
Windows 10 Pro 1703 (build 15063.850)

Docker for Beginners - Linux - Task2 - Query

Task 2 (https://training.play-with-docker.com/beginner-linux/#Task_2) step 1 mentions

cd ~/linux_tweet_app
where is this directory linux_tweet_app? . I believe the files in this directory (html and png) are referenced in the dockerfile in subsequent steps.

Output from web console below

[node1] (local) [email protected] ~
$ ls -al ~/
total 16
drwx------    1 root     root            18 Feb  8 01:20 .
drwxr-xr-x    1 root     root            57 Mar 23 14:45 ..
drwx------    3 root     root            17 Feb  8 01:20 .cache
-rw-rw-r--    1 root     root            43 Jan 17 16:42 .gitconfig
-rw-rw-r--    1 root     root          1865 Jan 17 16:42 .inputrc
-rw-rw-r--    1 root     root           185 Jan 17 16:42 .profile
drwxr-xr-x    2 root     root            61 Feb  8 01:20 .ssh
-rw-rw-r--    1 root     root            85 Jan 17 16:42 .vimrc

volume mounts in Docker for Desktop Kubernetes

Hello,

Does anybody know why i cant mount files from my compose file in Kubernetes but for Docker swarm it works?
i am using the new Kubernetes feature in Docker for Desktop. The mount im trying to make is:

Volumes:

  • C:\docker\appsettings.json:/app/appsettings.json

i am getting this error:

Stack.compose.docker.com "adapter" is invalid: adapter: Invalid value: "null": conversion to kube entities failed: C:\docker\appsettings.json: only absolute paths can be specified in mount source

The kubernetes deployment examples do not work with k8s > 1.16

The example deployment for kubernetes is in line with an old version of kubernetes and does not comply with the new k8s APIs for versions greater than 1.16.
For examples Deployments not longer use apiVersion as v1beta1; they have been migrated to v1
Also, the Deployment spec has changed a little.

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.