Giter VIP home page Giter VIP logo

java-masterclass's Introduction

Start learning java inside a docker container

Build a docker image from the provided Dockerfile. You have to replace the tokens <REPLACE-ME> with your credentials and your API-Token:

docker build --build-arg GH_TOKEN=<REPLACE-ME> --build-arg username=<REPLACE-ME> --build-arg email=<REPLACE-ME> -t java-masterclass .

The next step is to create the private and public gpg key

gpg --full-generate-key

Afterwards you are prompted to specify details for the key. Here you can accept the defaults with the exception of the key size. Enter a key size of 4096. Finally you have to specify your userid information and assign a password. Use the following command to list the long form of the keys.

gpg --list-secret-keys --keyid-format=long

Copy the key ID, in this case: 3AA5C34371567BD2

Enter this text with your copied ID. Your key will be printed to console.

gpg --armor --export <id>

Copy the printed key, beginning with BEGIN PGP PUBLIC KEY BLOCK and ending with END PGP PUBLIC KEY BLOCK.

Now you are able to add the key to your GitHub Account: https://github.com/settings/gpg/new

java-masterclass's People

Contributors

philippabele avatar

Watchers

 avatar

java-masterclass's Issues

Set Up Maven with JDK 17

in order to run jdk 17 with maven you need compatible versions

add instructions based on this post from digitalocean to the dockerfile

Step 1: Download the Maven Binaries

wget https://dlcdn.apache.org/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.tar.gz
tar -xvf apache-maven-3.8.6-bin.tar.gz
mv apache-maven-3.8.6 /opt/

Step 2: Setting M2_HOME and Path Variables

M2_HOME='/opt/apache-maven-3.8.6'
PATH="$M2_HOME/bin:$PATH"
export PATH

Step 3: Verify the Maven installation

mvn -version

Docker Exit Status (127)

There is an error in the logs of the container

bash: $'\342\200\231export': command not found

root@497ac6d8179b:/java-masterclass# exit

Manage access to different k8s cluster

May this helps for minikube

Extract the Cluster Certificate Authorithy

$ kubectl config view --minify --raw --output 'jsonpath={..cluster.certificate-authority-data}' | base64 -d | openssl x509 -text -out -
...

Extract the Client Certificate

$kubectl config view --minify --raw --output 'jsonpath={..user.client-certificate-data}' | base64 -d | openssl x509 -text -out -
...

Extract the Client Private Key

$ kubectl config view --minify --raw --output 'jsonpath={..user.client-key-data}' | base64 -d
...

For Windows user

choco install base64
choco install openssl

How to handle several cluster?

Update Readme

This README about this Java Masterclass Project gives you an overview of the project, instructions for setting up and using the project, and any other relevant information.

Overview

This project contains solutions to the coding challenges of Tim Buchalka's Java Masterclass on Udemy. This course is ideal for beginners and experienced programmers who want to learn or refresh their fundamental Java knowledge, which was recently updated to Java 17. It covers the following Java topics:

  • Expressions and statements
  • Control flow
  • Object-oriented programming with inheritance and polymorphism
  • Arrays
  • Lists, ArrayLists, LinkedLists, Iterators, Autoboxing
  • Inner and abstract classes, as well as interfaces
  • Java Generics
  • Packages, static and final keywords
  • Java Collections
  • JavaFX
  • Basic input and output, including java.util
  • Concurrency
  • Lambda expressions
  • Regular expressions
  • Debugging and unit testing
  • Databases
  • Network programming
  • Java 9 Module System

Installation

Feel free to support your own java journey with the solutions of this project. This project provides a dockerfile which contains a ready to use java environment. Just run the dockerfile and connect to the running container with VS Code.

Usage

The solutions are organized within packages and classes in the src folder of this project. The coding challenges are described within the classes itself or in markdown files named task.md within the packages.

Contributing

to contribute to the project, in order to report bugs or request additional solutions of coding challenges, feel free to open issues. if you would like to contribe with bug fixes or your own solution to challenges open a pull request and we will review your changes.

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.