LogoLogo
Deploy NowCommunity Careers
  • Introduction to StackAI
  • Litepaper
  • FAQs
    • Introductory FAQs
    • Technical FAQs
    • Project/App FAQ
    • Financial FAQs
  • Tokens
    • Add $STACK to MetaMask
    • Buy $STACK Tokens
  • App Deployment on StackOS
    • Custom App Deployment
    • AppStore App Deployment
    • Deploy a Containerized Application on StackOS
  • Basic Operations
    • Create WebTTY
    • WebTTY, Logs, Shell Access
    • Practice - Persistent Data, Alternate User
    • Reset StackOS Account
    • Map a container port
    • Custom DNS
    • Custom SSL
    • Account Funding - General
    • Pod Launch - General
  • Preparing Custom Images
    • Docker Hub Intro
    • GitHub, DockerHub and StackOS Integration
  • App Store Notes
    • Redis on StackOS
    • Memcached on StackOS
    • Presearch on StackOS
    • Wordpress on StackOS
    • Jenkins on StackOS
    • WebDAV on StackOS
  • Useful Apps
    • phpMyAdmin (Mysql Web Admin)
  • Wordpress Operations
    • Launching a Wordpress app on StackOS
    • WordPress Migration
    • Account Funding - Wordpress
    • Upload limit increase
    • SSL Mixed Content Resolution
    • Wordpress Domain Change
  • Other Applications
    • Python Applications
    • RSK
  • 0xMarket
    • Viewing your NodeNFT
    • Listing your NodeNFT
    • Buying a NodeNFT
Powered by GitBook
On this page
  • References
  • ✅ First Launch
  • ✅ Initial Setup Results
  • ✅ Seeing your first failure
  • ✅ Checking Failure
  • ✅ Determine Nature of Crash
  • ✅ Determining Owner
  • ✅ Changing Ownership
  • ✅ Success
  • ✅ Obtain your setup password
  1. App Store Notes

Jenkins on StackOS

Jenkins app deployment from the StackOS AppStore.

PreviousWordpress on StackOSNextWebDAV on StackOS

Last updated 3 years ago

Jenkins is a tool used by developers to automate various processes.

We will show how a basic setup can fail, how to discover the failure, and how to fix the failure.

References

✅ First Launch

Use this image: jenkins/jenkins:lts-jdk11

✅ Initial Setup Results

After your initial setup you will be presented with a URL such as:

✅ Seeing your first failure

Navigate to the provided URL to see the following message

no healthy upstream

✅ Checking Failure

Open a WebTTY and list your pod statuses

You will see that your Jenkins pod is flagged with "CrashLoopBackOff"

This indicates your pod is crashing

✅ Determine Nature of Crash

Use the WebTTY to show the pod logs. In some cases you will see something, in other cases you will not. It depends on the method used to set up the docker image.

kubectl logs jenkins-0xYourEthAddress

We have now determined our persistent data is owned by the wrong user. This is common if the pod is running as a user other than root. Determine the owner of the directory, set the ownership properly, and restart.

✅ Determining Owner

We now know the user/group should be 1000 / 1000 respectively.

✅ Changing Ownership

We use a dummy container image to make an easy shell and change ownership of the data directory

Temporarily set your pod image to "nginx:latest" and Update your Application

Shell into your pod

kubectl exec -ti jenkins-0xYourEthAddress-Random -- bash

Change the ownership of the persistent data directory

chmod 1000:1000 /var/jenkins_home

Verify the new ownership

# ls -al /var/jenkins_home
total 28
drwxr-xr-x 3 1000 1000  4096 Mar 18 13:29 .
drwxr-xr-x 1 root root  4096 Mar 18 13:45 ..
drwx------ 2 root root 16384 Mar 18 13:29 lost+found

Change the image back to jenkins/jenkins:lts-jdk11

✅ Success

Jenkins is now running!

✅ Obtain your setup password

kubectl exec jenkins-0xYourEthAddress-random more /var/jenkins_home/secrets/initialAdminPassword

Fill in the password

Proceed through the installation steps. We recommend you take the basic route the first time to get familiar before doing more complex setups.

Your site is now ready:

Navigate to the image details

https://jenkins-0xyourethaddress-matrix.stackos.io/
WebTTY, Logs, Shell Access
https://hub.docker.com/layers/jenkins/jenkins/latest/images/sha256-aa593c851bdd8ca16c7e546d2fbb191e3dd6bdb960a464b1f844d80431c272ef?context=explore
docker/README.md at master · jenkinsci/dockerGitHub
Logo
Docker Hub
Logo