OneCompiler

clab69

228

Exp2 :

~ sudo apt install gcc
~ gcc --version
~ sudo apt install build-essential
~ touch hello.c
~ gcc hello.c -o test
~ ./test

Exp3 :
YAML :

application: hello
version: 1
runtime: python27
api_version: 1
threadsafe: false

handlers:

  • url: /.*
    script: index.py

Python :

print 'Hello NHCE';

~ gcloud components install app-engine-go

~ google-cloud-sdk\bin\dev_appserver.py “location-of-the-desktop-folder”

Exp4 :

  1. Open Devices > Shared Folders > Shared Folders Settings.
  2. Click on the Add new share folder button
  3. Browse for the folder you plan to share, and click Select Folder.
  4. In Add Share, give the share a name you can use in both operating systems.
  5. Check Auto-mount and Make permanent, then OK.
  6. Click Devices – Insert Guest Addition CD Images and install guest addition
  7. Create New Folder on Ubuntu where you need to attach the Windows file
  8. Run the following command in the terminal to attach the windows fil
    ~ sudo mount –t vboxsf <Windows Folder Name> <Ubuntu Folder Name>
    s
    Exp 5 :

PROCEDURE

  1. Open Google Cloud Console
  2. Create a new project
  3. Select the project and activate cloud shell
  4. Execute the following commands in cloud shell
  5. Navigate to API and Services in menu. Enable API and services
  6. Search App Engine API and select App Engine Admin API and Enable
  7. Open cloud shell and perform the following commands
  8. Drag and drop the website documents in the editor window
  9. Type gcloud app deploy in cloud shell

commands :
~ gcloud projects list
~ gcloud config set project <project-id>
~ gcloud app create
~ gcloud app deploy

Exp 7 :
~ docker pull docker/getting-started
~ docker run -d -p 80:80 docker/getting-started
~ docker ps -a

Exp 8 :
~ 1. Create a parent folder TEST
~ 2. create new file insside it Dockerfile :
FROM nginx
COPY /src/index.html /usr/share/nginx/html/index.html
~ 3. create a new folder inside TEST -> src : inside that create new html code.
~ 4. Terminal Commands :
~ Docker build -t test .
~ Docker run -p 80:80 test
~ localhost:80