| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/google-cloud-sdk/lib/surface/code/__pycache__/ |
Upload File : |
�
��� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm
Z
dd lmZ dd
lm
Z
ddlmZ ddlZej ej ej j ej j � � G d
� dej � � � � � � ZdS )z?Command for creating files for a local development environment.� )�absolute_import)�division)�unicode_literals)�base)�flags)�local)�local_files)�cloud)�cloud_files)�filesNc �. � e Zd ZdZed� � � Zd� ZdS )�Exporta Writes skaffold and kubernetes files for local development.
Writes skaffold and kubernetes yaml that builds a docker image
and runs it locally. In order to build and run the image, run
> skaffold dev
This command should be used if there is a need to make
customizations to the development environment. Otherwise,
the gcloud local dev command should be used instead.
c �� � t j � � }|� | � � � � � |� � � |� � � |� � � |� � � |� � � � � � |� � � �
� � |� � � � � � |�
|� � |� d�� � }|� dddd�� � |� ddddd �
� � |� ddd
�� � d S )NF)�requiredz--skaffold-filez
skaffold.yamlz-Location of the generated skaffold.yaml file.)�defaultr �helpz--no-skaffold-file�
store_truez$Do not produce a skaffold.yaml file.)r �actionr r z--kubernetes-filezpods_and_services.yamlz=File containing yaml specifications for kubernetes resources.)r r )r �CommonFlags�AddAlphaAndBetaFlags�ReleaseTrack�AddServiceName�AddImage� AddMemory�AddCpu�EnvVarsGroup�
AddEnvVars�AddEnvVarsFile�
BuildersGroup�
AddBuilder�ConfigureParser�add_mutually_exclusive_group�add_argument)�cls�parser�common�skaffold_output_groups �lib/surface/code/export.py�ArgszExport.Args- s� � �
�
�
�
�F�
���� 0� 0� 2� 2�3�3�3�
������
�O�O����
������
�M�M�O�O�O�
�����$�$�&�&�&�
�����(�(�*�*�*�
�����%�%�'�'�'�
���6�"�"�"�"�?�?��?�O�O���&�&����
<� '� >� >� >� �&�&�����
3� '� 5� 5� 5� ����(�
L� � N� N� N� N� N� c �� � |� d� � r0|j r)t j |� � }t j |� � }n;t j || � � � � � }t j |� � }t j
|j � � 5 }|� t j |� � � � � � � d d d � � n# 1 swxY w Y |j sst j
|j � � 5 }|� t j |� |j � � � � � � d d d � � d S # 1 swxY w Y d S d S )Nr
)�IsKnownAndSpecifiedr
�AssembleSettingsr �CloudRuntimeFilesr r r �LocalRuntimeFilesr �
FileWriter�kubernetes_file�write�six�u�KubernetesConfig�no_skaffold_file�
skaffold_file�SkaffoldConfig)�self�args�settings�file_generator�outputs r( �Runz
Export.RunP s� � �����(�(� ?�T�Z� ?��'��-�-�h�"�4�X�>�>�n�n��'��d�.?�.?�.A�.A�B�B�h�"�4�X�>�>�n� � �$�.� /� /� =�6��l�l�3�5��8�8�:�:�;�;�<�<�<�=� =� =� =� =� =� =� =� =� =� =���� =� =� =� =� � � Q���D�.�/�/� Q�6����S�U�>�8�8��9M�N�N�O�O�P�P�P�Q� Q� Q� Q� Q� Q� Q� Q� Q� Q� Q� Q���� Q� Q� Q� Q� Q� Q�Q� Qs% �:C � C$�'C$�A E�E�EN)�__name__�
__module__�__qualname__�__doc__�classmethodr) r>