yankils / simple-devops-project Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://www.udemy.com/course/valaxy-devops/?referralCode=8147A5CF4C8C7D9E253F
Home Page: https://www.udemy.com/course/valaxy-devops/?referralCode=8147A5CF4C8C7D9E253F
FROM centos
RUN cd /etc/yum.repos.d/
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
RUN yum install -y java-1.8.0-openjdk
RUN mkdir /opt/tomcat/
WORKDIR /opt/tomcat
ADD https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.71/bin/apache-tomcat-9.0.71.tar.gz /opt/tomcat
RUN tar xvfz apache*.tar.gz
RUN mv apache-tomcat-9.0.71/* /opt/tomcat
EXPOSE 8080
CMD ["/opt/tomcat/bin/catalina.sh", "run"]
This works
Change the docker file
FROM centos
RUN mkdir /opt/tomcat/
WORKDIR /opt/tomcat
RUN curl -O https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.62/bin/apache-tomcat-9.0.62.tar.gz
RUN tar -xvzf apache-tomcat-9.0.62.tar.gz
RUN mv apache-tomcat-9.0.62/* /opt/tomcat
RUN cd /etc/yum.repos.d/
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
RUN yum -y install java
CMD /bin/bash
EXPOSE 8080
CMD ["/opt/tomcat/bin/catalina.sh", "run"]
Node.js APIs differences - Node.js for Mobile Apps https://code.janeasystems.com/nodejs-mobile/nodejs-apis-differences
Share From App: Dev Tools(Android Developer Tools)
Hi Shankar,
Brilliant course so far, learning a lot.
I would like to inform you that running yum install java -y in the Dockerfile throws the follows error -
Error - "Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist"
The mirror appears to be broker since centOS stopped supporting
CentOS Linux 8 had reached the End Of Life (EOL)](https://www.centos.org/centos-linux-eol/) on December 31st, 2021. It means that CentOS 8 will no longer receive development resources from the official CentOS project.
Can you please provide a workaround for this.
Thanks in advance.
Hi,
systemctl
is more powerful than service
command, try to implement that in your project.
root@ip-172-31-22-138:~# kops validate cluster
Using cluster from kubectl context: demo1212.k8s.valaxy.net
Validating cluster demo1212.k8s.valaxy.net
unexpected error during validation: unable to resolve Kubernetes cluster API URL dns: lookup api.demo1212.k8s.valaxy.net on 127.0.0.53:53: server misbehaving
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.