In this post i will mentioned how to pull and connect the Oracle repository with simplest way.
The first step and before do anything else you suppose to register in Oracle Repository website here
For the people who think differently Welcome aboard
In this post i will mentioned how to pull and connect the Oracle repository with simplest way.
The first step and before do anything else you suppose to register in Oracle Repository website here
version: "3"
services:
web:
# replace username/repo:tag with your name and image details
image: username/repo:tag
deploy:
replicas: 5
resources:
limits:
cpus: "0.1"
memory: 50M
restart_policy:
condition: on-failure
ports:
- "4000:80"
networks:
- webnet
networks:
webnet:
docker swarm init
docker stack deploy -c docker-compose.yml myfirstapp
docker service ls
curl -4 http://localhost:4000
In this post i will show you how to build your first application using docker, without docker if you need to programming using language first you should install that language on your PC and test it on your development environment and for sure the production should be ready to sync and test your code again on it seems a lot of work.😥
But now with docker you just pull/grab that image, no installation needed, and run your code on that image.🎉
But how we can control what happening inside the environment, like Accessing to resources like networking interfaces and disk drives is virtualized inside this environment which is isolated from the rest of your system all of this happening by something called Dockerfile.
The Following example taken from Docker Documentation:
# Use an official Python runtime as a parent image
FROM python:2.7-slim
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt
# Make port 80 available to the world outside this container
EXPOSE 80
# Define environment variable
ENV NAME World
# Run app.py when the container launches
CMD ["python", "app.py"]
As you see from the above example the code explained in the comment part, which is done by Python programming language, the above docker file create directory, copy ,paste and check the port then run the app.py.
app.py (very simple Code )
# Use an official Python runtime as a parent image
print("Goodbye, World!")
Now you have the dockerfile under the directory and the app.py file, then run the build command. This creates a Docker image,
docker build -t test .
Check by
$ docker image ls
Run the app, mapping your machine’s port 4000 to the container’s published port 80 using -p:
docker run -p 4000:80 test
Once the above command will be run the log will indicates that you could test your code using this link http://localhost:80 but this is only from inside docker, so in case you need to test it outside the docker the port will be http://localhost:4000
Cheers 👌
Osama Mustafa
The first command listing all the images under your machine, the second one List the hello-world image that was downloaded to your machine.
Cheers
i will update you with part 2 soon.
Osama
this article is fully details and working on Solaris but the same steps could be follow for Unix/Linux and windows.
The Link here
Cheers
Osama
Thank
Osama Mustafa
# svccfg -s system/identity:node listprop config
config application
config/enable_mapping boolean true
config/ignore_dhcp_hostname boolean false
config/loopback astring
config/nodename astring solarisdb1
# svccfg -s system/identity:node setprop config/nodename=”solarisdbnew1″
# svcadm refresh system/identity:node
# svcadm restart system/identity:node
# svccfg -s system/identity:node listprop config
Thank you
I tried to make this article as simple as it’s, since i faced different issue during this and couldn’t find any articles or Oracle Support document that related to any of the issue i faced so i am writing this blog to share it and could be useful for people.
Weblogic Server comes with an Embedded LDAP Server which acts as the Default Provider for authentication, authorization and role mapping .Since authentication is based on JAAS ( Java Authentication and Authorization Service), we can have external providers as well one of these external provider is Active directory authentication.
Important note :- Before start any of these steps you should ask your system administrator to create active directory user the purpose of this use only to read active directory information and system administrator should provide you with distinguished name (DN) for this user, and Assign it to Administrator Group. This is required as Active Directory gives connection only to Admin User.
Steps:
keytool -import -trustcacerts -alias NEWAD -file Certifcate_name -keystore NEWAD.jks -storepass Oracle123
JAVA_OPTIONS=”${JAVA_OPTIONS} -Djavax.net.ssl.trustStore=/u01/Oracle/Middleware/fmw_soa/wlserver/server/lib/NEWAD.jks
However now everything has been changed and the market working under new term which is CLOUD including different vendor AWS, Azure, and Oracle, As DBA your knowledge shouldn’t stop by only Database, within cloud there is new tools that can help the DBA with their daily Job and it’s called Devops.
DBA usually review each change request to ensure that it is well thought out,They are in charge of monitoring their databases and keeping them available and high-performing, manage access to and the overall security of the platform.
Database automation frees the DBA from the bottleneck of the past that delayed application releases since there is different environment production, Pre-Production, Development or Testing, the DevOps Automation relieved of the pressures of constantly having to juggle and merge various teams’ database changes, are now free to help their organisations take bigger steps forward in ongoing innovation.
But what is the Devops ? And How can i use to make my Job Easier
DevOps is the combination of cultural philosophies, practices, and tools that increases an organization’s ability to deliver applications and services at high velocity: evolving and improving products at a faster pace than organizations using traditional software development and infrastructure management processes. This speed enables organizations to better serve their customers and compete more effectively in the market.
DevOps Practices