Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Jika Anda ingin menggunakan implementasi alternatif dari Python, Java, Node.js, Go, Ruby, PHP, .NET, atau menulis kode dalam bahasa lain, maka Anda memerlukan runtime kustom. Runtime kustom
memungkinkan Anda menentukan lingkungan runtime baru, yang dapat mencakup komponen
tambahan seperti penerjemah bahasa atau server aplikasi.
Untuk membuat runtime kustom, buat Dockerfile dengan image dasar pilihan Anda, lalu tambahkan perintah docker untuk membangun lingkungan runtime yang diinginkan. Penting untuk diingat bahwa Anda bertanggung jawab untuk memastikan bahwa komponen yang Anda tetapkan di Dockerfile kompatibel dan dikonfigurasi untuk memberikan performa yang diinginkan.
Saat menggunakan runtime kustom, Anda harus menulis kode aplikasi untuk menangani permintaan siklus proses dan health check lingkungan yang fleksibel. Mulailah dengan
membaca cara membangun runtime
kustom sebelum mulai
mengembangkan aplikasi.
Aplikasi yang menggunakan runtime kustom memanfaatkan berbagai
layananGoogle Cloud dengan menggunakan REST API atau library klien publik,
seperti App Engine Admin API dan Library Klien
Google.
Gunakan tabel berikut untuk memahami perbandingan runtime kustom dengan kumpulan runtime App Engine yang ada:
Fitur
Runtime fleksibel
Runtime kustom
Dockerfile
File default yang disediakan secara otomatis oleh SDK
Ditulis tangan oleh developer
Modifikasi Dockerfile diizinkan
Ya
Ya
Bahasa
Python, Java, Node.js, Go, Ruby, PHP, .NET
Perangkat lunak apa pun yang dapat melayani permintaan HTTP
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-11 UTC."],[[["\u003cp\u003eCustom runtimes enable the use of any language or software capable of handling HTTP requests, beyond the standard supported options like Python, Java, and Node.js.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers create custom runtimes by crafting a Dockerfile to define the runtime environment, including any necessary components.\u003c/p\u003e\n"],["\u003cp\u003eUsers of custom runtimes are responsible for the compatibility and performance of the components specified in their Dockerfile.\u003c/p\u003e\n"],["\u003cp\u003eApplications leveraging custom runtimes can access all Google Cloud services via public REST APIs or client libraries.\u003c/p\u003e\n"],["\u003cp\u003eUnlike standard flexible runtimes where the Dockerfile is automatically supplied, developers must hand-write the Dockerfile for custom runtime environments.\u003c/p\u003e\n"]]],[],null,["# About Custom runtimes\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nIf you'd like to use an alternative implementation of Python,\nJava, Node.js, Go,\nRuby, PHP, .NET or you write\ncode in any other language, then custom runtimes are for you. Custom runtimes\nallow you to define new runtime environments, which might include additional\ncomponents like language interpreters or application servers.\n\nTo create a custom runtime, you create a Dockerfile with a base image of your\nchoice, and then add the `docker` commands that build your desired runtime\nenvironment. It's important to remember that you are responsible for ensuring\nthat the components that you specified in your Dockerfile are compatible and\nconfigured to deliver the desired performance.\n\nWhen you use a custom runtime, you must write your application code to handle\ncertain flexible environment life-cycle and health checking requests. Start by\nreading about how to [build a custom\nruntime](/appengine/docs/flexible/custom-runtimes/build) before you begin\ndeveloping your application.\n\nApplications that use custom runtimes take advantage of all the various\nGoogle Cloud services by using the public REST APIs or client libraries,\nsuch as the [App Engine Admin API](/appengine/docs/admin-api) and the [Google Client\nLibraries](/python/docs/reference).\n\nUse the following table to understand how a custom runtime compares to the\nexisting set of App Engine runtimes:\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]