Giter Site home page Giter Site logo

hello-world's Introduction

DevOps Project for Beginners

Image

hello-world's People

Contributors

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

hello-world's Issues

The command '/bin/sh -c yum install java -y' returned a non-zero code: 1

[root@dockerhost ~]# docker build -t mytomcat .
Sending build context to Docker daemon 17.41kB
Step 1/9 : FROM centos:latest
---> 5d0da3dc9764
Step 2/9 : RUN yum install java -y
---> Running in 96de11fbb9a8
CentOS Linux 8 - AppStream 66 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
The command '/bin/sh -c yum install java -y' returned a non-zero code: 1

Solved
add the following lines to Dockerfile

add these lines of code

FROM centos:latest

ADD 'http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-8-3.el8.noarch.rpm' .

RUN rpm -i 'centos-gpg-keys-8-3.el8.noarch.rpm'

RUN dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos -y

RUN dnf distro-sync -y

RUN yum install java -y

permission denied

we could not able to push the edited index.jsp to origin master,permission denied for user and also asking for username and password when push command is entered
Screenshot (24)

Source option 6 is no longer supported. Use 7 or later.

I'm using Mac to practice because my AWS account has some problem, but when I try to build maven, there are some problems.

My java is : /Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home

nvm:
$ mvn --version Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T13:00:29-06:00) Maven home: /opt/maven Java version: 12.0.2, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "10.13.1", arch: "x86_64", family: "mac"

Error messages:
[ERROR] error: Source option 6 is no longer supported. Use 7 or later.
[ERROR] error: Target option 6 is no longer supported. Use 7 or later.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project server: Compilation failure: Compilation failure:
[ERROR] error: Source option 6 is no longer supported. Use 7 or later.
[ERROR] error: Target option 6 is no longer supported. Use 7 or later.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :server

Seems like as long as you update the pom.xml with
<properties> <maven.compiler.source>1.6</maven.compiler.source> <maven.compiler.target>1.6</maven.compiler.target> </properties>

Then, the problem could be resolved.

Source option 6 is no longer supported. Use 7 or later.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project server: Compilation failure: Compilation failure:
[ERROR] error: Source option 6 is no longer supported. Use 7 or later.
[ERROR] error: Target option 6 is no longer supported. Use 7 or later.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :server

Can you Help me this errors.

A

New

Unable to install java

[root@dockerhost etc]# vi Dockerfile
[root@dockerhost etc]# docker build -t mytomcat .
Sending build context to Docker daemon 28.79MB
Step 1/9 : FROM centos
---> 5d0da3dc9764
Step 2/9 : RUN yum install java -y
---> Running in c6093995c672
CentOS Linux 8 - AppStream 152 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

Docker hub issue while push docker image into it.

ansible playbook:-

  • hosts: all
    become: yes

    tasks:

    • name: create docker image from war file
      command: docker build -t simple-devops-image:latest .
      args:
      chdir: /opt/docker

    • name: create tag from docker image
      command: docker tag simple-devops-image kishore0072/simple-devops-image

    • name: push the image into docker hub
      command: docker push kishore0072/simple-devops-image
      ignore_errors: yes

    • name: remove docker images from machine
      command: docker rmi simple-devops-image:latest kishore0072/simple-devops-image
      ignore_errors: yes

Error:-
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["docker", "push", "kishore0072/simple-devops-image"], "delta": "0:00:02.345420", "end": "2020-08-02 19:07:57.913026", "msg": "non-zero return code", "rc": 1, "start": "2020-08-02 19:07:55.567606", "stderr": "denied: requested access to the resource is denied", "stderr_lines": ["denied: requested access to the resource is denied"], "stdout": "The push refers to repository [docker.io/kishore0072/simple-devops-image]\nd038c088ac76: Preparing\nd0f3f4011f28: Preparing\n583dc95d65c9: Preparing\nf26731984f9b: Preparing\n9f052711b40a: Preparing\n81242e1e644e: Preparing\n39a6e47c4ae6: Preparing\nfc6174f0df4a: Preparing\n425325c72d90: Preparing\nc596d5191368: Preparing\ndaf45b2cad9a: Preparing\n8c466bf4ca6f: Preparing\n81242e1e644e: Waiting\n39a6e47c4ae6: Waiting\nfc6174f0df4a: Waiting\n425325c72d90: Waiting\nc596d5191368: Waiting\ndaf45b2cad9a: Waiting\n8c466bf4ca6f: Waiting", "stdout_lines": ["The push refers to repository [docker.io/kishore0072/simple-devops-image]", "d038c088ac76: Preparing", "d0f3f4011f28: Preparing", "583dc95d65c9: Preparing", "f26731984f9b: Preparing", "9f052711b40a: Preparing", "81242e1e644e: Preparing", "39a6e47c4ae6: Preparing", "fc6174f0df4a: Preparing", "425325c72d90: Preparing", "c596d5191368: Preparing", "daf45b2cad9a: Preparing", "8c466bf4ca6f: Preparing", "81242e1e644e: Waiting", "39a6e47c4ae6: Waiting", "fc6174f0df4a: Waiting", "425325c72d90: Waiting", "c596d5191368: Waiting", "daf45b2cad9a: Waiting", "8c466bf4ca6f: Waiting"

A

Tokuninasi

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.